MCPcopy
hub / github.com/pquerna/ffjson / TestMarshalFaster

Function TestMarshalFaster

tests/ff_test.go:169–179  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

167}
168
169func TestMarshalFaster(t *testing.T) {
170 record := newLogFFRecord()
171 _, err := ffjson.MarshalFast(record)
172 require.NoError(t, err)
173
174 r2 := newLogRecord()
175 _, err = ffjson.MarshalFast(r2)
176 require.Error(t, err, "Record should not support MarshalFast")
177 _, err = ffjson.Marshal(r2)
178 require.NoError(t, err)
179}
180
181func TestMarshalEncoder(t *testing.T) {
182 record := newLogFFRecord()

Callers

nothing calls this directly

Calls 3

newLogFFRecordFunction · 0.85
newLogRecordFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…