MCPcopy Create free account
hub / github.com/DoNewsCode/core / TestCodecParser_Unmarshal

Function TestCodecParser_Unmarshal

config/codec_parser_test.go:20–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func TestCodecParser_Unmarshal(t *testing.T) {
21 raw, _ := ioutil.ReadFile("./testdata/codec_parser.yaml")
22 parser := CodecParser{yaml.Codec{}}
23 data, err := parser.Unmarshal(raw)
24 assert.NoError(t, err)
25 expected, _ := yaml2.Parser().Unmarshal(raw)
26 assert.Equal(t, expected, data)
27}

Callers

nothing calls this directly

Calls 2

UnmarshalMethod · 0.95
UnmarshalMethod · 0.65

Tested by

no test coverage detected