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

Method UnmarshalJSONArray

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

Source from the content-addressed store, hash-verified

437type testChannelArray chan *TestObj
438
439func (c *testChannelArray) UnmarshalJSONArray(dec *Decoder) error {
440 obj := &TestObj{}
441 if err := dec.AddObject(obj); err != nil {
442 return err
443 }
444 *c <- obj
445 return nil
446}
447
448func TestDecoderSliceNull(t *testing.T) {
449 json := []byte(`null`)

Callers

nothing calls this directly

Calls 1

AddObjectMethod · 0.45

Tested by

no test coverage detected