MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / BenchmarkIsAgentFromUserAgent

Function BenchmarkIsAgentFromUserAgent

internal/utils/agents/agents_test.go:15–19  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

13}
14
15func BenchmarkIsAgentFromUserAgent(b *testing.B) {
16 for i := 0; i < b.N; i++ {
17 agents.IsAgentFromUserAgent("Mozilla/5.0 (Linux;u;Android 4.2.2;zh-cn;) AppleWebKit/534.46 (KHTML,like Gecko) Version/5.1 Mobile Safari/10600.6.3 (compatible; Yaho)")
18 }
19}

Callers

nothing calls this directly

Calls 1

IsAgentFromUserAgentFunction · 0.92

Tested by

no test coverage detected