(t *testing.T)
| 229 | } |
| 230 | |
| 231 | func TestDecodeReaderError(t *testing.T) { |
| 232 | r := &badReader{} |
| 233 | |
| 234 | dec := toml.NewDecoder(r) |
| 235 | m := map[string]interface{}{} |
| 236 | err := dec.Decode(&m) |
| 237 | assert.Error(t, err) |
| 238 | } |
| 239 | |
| 240 | func TestUnmarshal_Integers(t *testing.T) { |
| 241 | examples := []struct { |