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

Function TestLocalhost

internal/netutil/netutil_test.go:163–168  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

161}
162
163func TestLocalhost(t *testing.T) {
164 _, err := Localhost()
165 if err != nil {
166 t.Fatal(err)
167 }
168}
169
170func TestListenOnLocalRandomPort(t *testing.T) {
171 l, err := ListenOnLocalRandomPort()

Callers

nothing calls this directly

Calls 2

FatalMethod · 0.80
LocalhostFunction · 0.70

Tested by

no test coverage detected