(t *testing.T)
| 41 | const localhostTCPAddr = "localhost:11211" |
| 42 | |
| 43 | func TestLocalhost(t *testing.T) { |
| 44 | t.Parallel() |
| 45 | c, err := net.Dial("tcp", localhostTCPAddr) |
| 46 | if err != nil { |
| 47 | t.Skipf("skipping test; no server running at %s", localhostTCPAddr) |
| 48 | } |
| 49 | io.WriteString(c, "flush_all\r\n") |
| 50 | c.Close() |
| 51 | |
| 52 | testWithClient(t, New(localhostTCPAddr)) |
| 53 | } |
| 54 | |
| 55 | // Run the memcached binary as a child process and connect to its unix socket. |
| 56 | func TestUnixSocket(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…