MCPcopy Create free account
hub / github.com/segmentio/encoding / assertEmpty

Function assertEmpty

proto/message_test.go:158–164  ·  view source on GitHub ↗
(t *testing.T, m RawMessage)

Source from the content-addressed store, hash-verified

156}
157
158func assertEmpty(t *testing.T, m RawMessage) {
159 t.Helper()
160
161 if len(m) != 0 {
162 t.Errorf("unexpected content remained in the protobuf message: %v", m)
163 }
164}
165
166func BenchmarkScan(b *testing.B) {
167 m, _ := Marshal(&message{

Callers 1

TestDecodeFixtureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…