MCPcopy Index your code
hub / github.com/perkeep/perkeep / BenchmarkLoopbackIP

Function BenchmarkLoopbackIP

internal/netutil/netutil_test.go:194–200  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

192}
193
194func BenchmarkLoopbackIP(b *testing.B) {
195 for i := 0; i < b.N; i++ {
196 if ip := loopbackIP(); ip == nil {
197 b.Fatal("no ip found.")
198 }
199 }
200}

Callers

nothing calls this directly

Calls 2

loopbackIPFunction · 0.85
FatalMethod · 0.80

Tested by

no test coverage detected