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

Function TestDecodeIPPrefix

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

Source from the content-addressed store, hash-verified

219}
220
221func TestDecodeIPPrefix(t *testing.T) {
222 for _, tc := range internal.IPPrefixTestCases {
223 d1 := decodeTagData(getReader(tc.Binary))
224 if string(d1) != tc.Text {
225 t.Errorf("decodeIPPrefix(0x%s)=%s, want:%s", hex.EncodeToString([]byte(tc.Binary)), d1, tc.Text)
226 }
227 }
228}
229
230var compositeCborTestCases = []struct {
231 Binary []byte

Callers

nothing calls this directly

Calls 2

decodeTagDataFunction · 0.85
getReaderFunction · 0.85

Tested by

no test coverage detected