MCPcopy Index your code
hub / github.com/dunglas/httpsfv / TestMarshalBinary

Function TestMarshalBinary

binary_test.go:9–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestMarshalBinary(t *testing.T) {
10 t.Parallel()
11
12 var bd strings.Builder
13 _ = marshalBinary(&bd, []byte{4, 2})
14
15 if bd.String() != ":BAI=:" {
16 t.Error("marshalBinary(): invalid")
17 }
18}
19
20func TestParseBinary(t *testing.T) {
21 t.Parallel()

Callers

nothing calls this directly

Calls 2

marshalBinaryFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…