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

Method UnmarshalJSONArray

decode_test.go:29–36  ·  view source on GitHub ↗
(dec *Decoder)

Source from the content-addressed store, hash-verified

27type testDecodeSlice []*testDecodeObj
28
29func (t *testDecodeSlice) UnmarshalJSONArray(dec *Decoder) error {
30 obj := &testDecodeObj{}
31 if err := dec.AddObject(obj); err != nil {
32 return err
33 }
34 *t = append(*t, obj)
35 return nil
36}
37
38type allTypeDecodeTestCase struct {
39 name string

Callers

nothing calls this directly

Calls 1

AddObjectMethod · 0.45

Tested by

no test coverage detected