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:
parent
cd9c52fe33
commit
976eb2769d
1 changed files with 4 additions and 5 deletions
|
|
@ -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) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue