fixup! Further pursue of perfection.

This commit is contained in:
2025-09-04 22:43:39 +01:00
parent 29ec26cbaa
commit f291dcca26
43 changed files with 3995 additions and 2916 deletions
+5 -5
View File
@@ -14,9 +14,9 @@ import (
func TestExcludedURLsConfiguration(t *testing.T) {
tests := []struct {
name string
errorContains string
excludedURLs []string
expectError bool
errorContains string
}{
{
name: "valid excluded URLs",
@@ -72,8 +72,8 @@ func TestExcludedURLsConfiguration(t *testing.T) {
func TestExcludedURLsMatching(t *testing.T) {
tests := []struct {
name string
excludedURLs []string
requestPath string
excludedURLs []string
shouldMatch bool
}{
{
@@ -162,8 +162,8 @@ func TestExcludedURLsBypassesAuthentication(t *testing.T) {
tests := []struct {
name string
excludedURLs []string
requestPath string
excludedURLs []string
expectNextHandler bool
expectAuthRedirect bool
}{
@@ -338,9 +338,9 @@ func TestExcludedURLsWithAuthentication(t *testing.T) {
func TestExcludedURLsEdgeCases(t *testing.T) {
tests := []struct {
name string
excludedURLs []string
requestPath string
description string
excludedURLs []string
shouldMatch bool
}{
{
@@ -462,8 +462,8 @@ func TestExcludedURLsIntegration(t *testing.T) {
// Test various scenarios
scenarios := []struct {
path string
expectStatus int
expectContent string
expectStatus int
expectRedirect bool
}{
{