From 70f5ebeb4bbbd206ab34db26ba0906743eb2f200 Mon Sep 17 00:00:00 2001 From: DeniskaRediska Date: Tue, 22 Oct 2019 12:42:19 +0300 Subject: [PATCH] fix test --- service/method_matcher_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/method_matcher_test.go b/service/method_matcher_test.go index 8a1ceaa..e3bf157 100644 --- a/service/method_matcher_test.go +++ b/service/method_matcher_test.go @@ -24,7 +24,7 @@ var ( func TestCacheableMethodsMatcher_Match(t *testing.T) { matcher := NewCacheableMethodMatcher(patterns) for _, c := range cases { - res := Match(c.Method) + res := matcher.Match(c.Method) if c.Result != res { t.Error(c) } @@ -35,7 +35,7 @@ func BenchmarkCacheableMethodsMatcher_Match(b *testing.B) { matcher := NewCacheableMethodMatcher(patterns) for i := 0; i < b.N; i++ { for _, c := range cases { - _ = Match(c.Method) + _ = matcher.Match(c.Method) } } } @@ -44,7 +44,7 @@ func BenchmarkRuntimeMatcher_Match(b *testing.B) { matcher := NewRuntimeMethodMatcher(patterns) for i := 0; i < b.N; i++ { for _, c := range cases { - _ = Match(c.Method) + _ = matcher.Match(c.Method) } } }