MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / RemoteAddr

Method RemoteAddr

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

Source from the content-addressed store, hash-verified

33 }
34}
35func (this *testConn) RemoteAddr() net.Addr {
36 if this.addr != nil {
37 return this.addr
38 }
39 this.addr = &net.TCPAddr{
40 IP: net.ParseIP(testutils.RandIP()),
41 Port: 1234,
42 }
43 return this.addr
44}
45func (this *testConn) SetDeadline(t time.Time) error {
46 return nil
47}

Callers 1

connAddrMethod · 0.45

Calls 2

RandIPFunction · 0.92
ParseIPMethod · 0.80

Tested by

no test coverage detected