MCPcopy
hub / github.com/bradfitz/gomemcache / TestFakeServer

Function TestFakeServer

memcache/memcache_test.go:78–90  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76}
77
78func TestFakeServer(t *testing.T) {
79 t.Parallel()
80 ln, err := net.Listen("tcp", "localhost:0")
81 if err != nil {
82 t.Fatalf("failed to listen: %v", err)
83 }
84 t.Logf("running test server on %s", ln.Addr())
85 defer ln.Close()
86 srv := &testServer{}
87 go srv.Serve(ln)
88
89 testWithClient(t, New(ln.Addr().String()))
90}
91
92func TestTLS(t *testing.T) {
93 t.Parallel()

Callers

nothing calls this directly

Calls 5

ServeMethod · 0.95
testWithClientFunction · 0.85
NewFunction · 0.85
CloseMethod · 0.80
StringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…