From 976eb2769da8ea9539ffddd1f02ea23151cc49e0 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 23 Oct 2025 10:54:48 +0800 Subject: [PATCH] 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. --- openapi/oauth/acl/scope_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/openapi/oauth/acl/scope_test.go b/openapi/oauth/acl/scope_test.go index 97e8e156..fa9fc772 100644 --- a/openapi/oauth/acl/scope_test.go +++ b/openapi/oauth/acl/scope_test.go @@ -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) { } } } -