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

Function TestDecodeMACAddr

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

Source from the content-addressed store, hash-verified

210}
211
212func TestDecodeMACAddr(t *testing.T) {
213 for _, tc := range internal.MacAddrTestCases {
214 d1 := decodeTagData(getReader(tc.Binary))
215 if string(d1) != tc.Text {
216 t.Errorf("decodeNetworkAddr(0x%s)=%s, want:%s", hex.EncodeToString([]byte(tc.Binary)), d1, tc.Text)
217 }
218 }
219}
220
221func TestDecodeIPPrefix(t *testing.T) {
222 for _, tc := range internal.IPPrefixTestCases {

Callers

nothing calls this directly

Calls 2

decodeTagDataFunction · 0.85
getReaderFunction · 0.85

Tested by

no test coverage detected