MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / LocalAddr

Method LocalAddr

internal/conns/map_test_test.go:29–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 return nil
28}
29func (this *testConn) LocalAddr() net.Addr {
30 return &net.TCPAddr{
31 IP: net.ParseIP(testutils.RandIP()),
32 Port: 1234,
33 }
34}
35func (this *testConn) RemoteAddr() net.Addr {
36 if this.addr != nil {
37 return this.addr

Callers

nothing calls this directly

Calls 2

RandIPFunction · 0.92
ParseIPMethod · 0.80

Tested by

no test coverage detected