MCPcopy
hub / github.com/rs/zerolog / TestDecodeNetworkAddr

Function TestDecodeNetworkAddr

internal/cbor/decoder_test.go:203–210  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

201}
202
203func TestDecodeNetworkAddr(t *testing.T) {
204 for _, tc := range internal.IpAddrTestCases {
205 d1 := decodeTagData(getReader(tc.Binary))
206 if string(d1) != tc.Text {
207 t.Errorf("decodeNetworkAddr(0x%s)=%s, want:%s", hex.EncodeToString([]byte(tc.Binary)), d1, tc.Text)
208 }
209 }
210}
211
212func TestDecodeMACAddr(t *testing.T) {
213 for _, tc := range internal.MacAddrTestCases {

Callers

nothing calls this directly

Calls 2

decodeTagDataFunction · 0.85
getReaderFunction · 0.85

Tested by

no test coverage detected