From 255ab13556d8e646d5828696aae794ce0598d2bb Mon Sep 17 00:00:00 2001 From: JIeJaitt <498938874@qq.com> Date: Tue, 18 Mar 2025 17:45:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix:=20lint=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- path_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/path_test.go b/path_test.go index 48dec823..702f4285 100644 --- a/path_test.go +++ b/path_test.go @@ -460,6 +460,8 @@ func TestConstraint_CheckConstraint(t *testing.T) { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { + t.Parallel() + result := tc.constraint.CheckConstraint(tc.param) require.Equal(t, tc.expectedResult, result) }) @@ -468,10 +470,10 @@ func TestConstraint_CheckConstraint(t *testing.T) { type mockCustomConstraint struct{} -func (m *mockCustomConstraint) Name() string { +func (*mockCustomConstraint) Name() string { return "custom" } -func (m *mockCustomConstraint) Execute(_ string, _ ...string) bool { +func (*mockCustomConstraint) Execute(_ string, _ ...string) bool { return true }