(c *C)
| 973 | } |
| 974 | |
| 975 | func (s *S) TestDecoderErrors(c *C) { |
| 976 | for _, item := range unmarshalErrorTests { |
| 977 | var value interface{} |
| 978 | err := yaml.NewDecoder(strings.NewReader(item.data)).Decode(&value) |
| 979 | c.Assert(err, ErrorMatches, item.error, Commentf("Partial unmarshal: %#v", value)) |
| 980 | } |
| 981 | } |
| 982 | |
| 983 | var unmarshalerTests = []struct { |
| 984 | data, tag string |