@@ -88,7 +88,7 @@ func assertIgnoreIP(t *testing.T, plugin *UmamiFeeder, expected bool, clientIP s
8888 req , _ := http .NewRequestWithContext (context .Background (), http .MethodGet , "http://localhost" , nil )
8989 req .Header .Set (plugin .headerIp , clientIP )
9090
91- if expected != plugin .shouldTrack (req ) {
91+ if expected != plugin .shouldTrackRequest (req ) {
9292 t .Fatalf ("expected %v for %s" , expected , clientIP )
9393 }
9494}
@@ -125,7 +125,7 @@ func assertIgnoreUrl(t *testing.T, plugin *UmamiFeeder, expected bool, url strin
125125 t .Helper ()
126126 req , _ := http .NewRequestWithContext (context .Background (), http .MethodGet , url , nil )
127127
128- if expected != plugin .shouldTrack (req ) {
128+ if expected != plugin .shouldTrackRequest (req ) {
129129 t .Fatalf ("expected %v for %s" , expected , url )
130130 }
131131}
@@ -148,7 +148,7 @@ func assertIgnoreUa(t *testing.T, plugin *UmamiFeeder, expected bool, ua string)
148148 req , _ := http .NewRequestWithContext (context .Background (), http .MethodGet , "http://localhost/" , nil )
149149 req .Header .Set ("User-Agent" , ua )
150150
151- if expected != plugin .shouldTrack (req ) {
151+ if expected != plugin .shouldTrackRequest (req ) {
152152 t .Fatalf ("expected %v for %s" , expected , ua )
153153 }
154154}
0 commit comments