Refactor test case structure for path matching in ACL tests

- Adjusted the formatting of the test case struct in scope_test.go for improved readability.
- No functional changes were made; this commit focuses on code style consistency.
This commit is contained in:
Max 2025-10-23 10:54:48 +08:00
parent cd9c52fe33
commit 976eb2769d

View file

@ -98,10 +98,10 @@ func TestPathMatchingExactPaths(t *testing.T) {
// Add endpoints with different trailing slash patterns
testCases := []struct {
method string
definedPath string
requestPaths []string
shouldMatch bool
method string
definedPath string
requestPaths []string
shouldMatch bool
}{
{
method: "POST",
@ -147,4 +147,3 @@ func TestPathMatchingExactPaths(t *testing.T) {
}
}
}