Merge pull request #1225 from trheyi/main

Refactor test case structure for path matching in ACL tests
This commit is contained in:
Max 2025-10-23 10:55:15 +08:00 committed by GitHub
commit 827bcb7757
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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