MCPcopy
hub / github.com/go-yaml/yaml / TestDecoderReadError

Method TestDecoderReadError

decode_test.go:914–917  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

912}
913
914func (s *S) TestDecoderReadError(c *C) {
915 err := yaml.NewDecoder(errReader{}).Decode(&struct{}{})
916 c.Assert(err, ErrorMatches, `yaml: input error: some read error`)
917}
918
919func (s *S) TestUnmarshalNaN(c *C) {
920 value := map[string]interface{}{}

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.45

Tested by

no test coverage detected