MCPcopy
hub / github.com/tinylib/msgp / TestReadWriteExtensionBytes

Function TestReadWriteExtensionBytes

msgp/extension_test.go:119–130  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

117}
118
119func TestReadWriteExtensionBytes(t *testing.T) {
120 var bts []byte
121
122 for range 24 {
123 e := randomExt()
124 bts, _ = AppendExtension(bts[0:0], &e)
125 _, err := ReadExtensionBytes(bts, &e)
126 if err != nil {
127 t.Errorf("error with extension (length %d): %s", len(bts), err)
128 }
129 }
130}
131
132func TestAppendAndWriteCompatibility(t *testing.T) {
133 var bts []byte

Callers

nothing calls this directly

Calls 3

randomExtFunction · 0.85
AppendExtensionFunction · 0.85
ReadExtensionBytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…