MCPcopy Index your code
hub / github.com/CodisLabs/codis / TestResolveTCPAddr

Function TestResolveTCPAddr

pkg/utils/resolver_test.go:25–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23}
24
25func TestResolveTCPAddr(t *testing.T) {
26 tcpAddr := ResolveTCPAddr("127.0.0.1:1000")
27 assert.Must(tcpAddr != nil)
28 assert.Must(tcpAddr.IP.Equal(net.ParseIP("127.0.0.1")))
29 assert.Must(tcpAddr.Port == 1000)
30}
31
32func TestResolveTCPAddrTimeout(t *testing.T) {
33 start := time.Now()

Callers

nothing calls this directly

Calls 1

ResolveTCPAddrFunction · 0.85

Tested by

no test coverage detected