MCPcopy Create free account
hub / github.com/pion/ice / TestIPConvertError_Error

Function TestIPConvertError_Error

addr_test.go:86–92  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

84}
85
86func TestIPConvertError_Error(t *testing.T) {
87 e := ipConvertError{ip: []byte("bad-ip")}
88 require.Equal(t,
89 "failed to convert IP 'bad-ip' to netip.Addr",
90 e.Error(),
91 )
92}
93
94func TestIPAddrToNetIP_Error_InvalidBytes(t *testing.T) {
95 bad := []byte{1} // invalid length -> AddrFromSlice returns ok=false

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.95
EqualMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…