MCPcopy Create free account
hub / github.com/francoispqt/gojay / UnmarshalJSONArray

Method UnmarshalJSONArray

decode_array_test.go:294–298  ·  view source on GitHub ↗
(dec *Decoder)

Source from the content-addressed store, hash-verified

292type testSliceObjects []*testObject
293
294func (t *testSliceObjects) UnmarshalJSONArray(dec *Decoder) error {
295 obj := &testObject{}
296 *t = append(*t, obj)
297 return dec.AddObject(obj)
298}
299
300func TestSliceObjects(t *testing.T) {
301 testCases := []struct {

Callers

nothing calls this directly

Calls 1

AddObjectMethod · 0.45

Tested by

no test coverage detected