MCPcopy
hub / github.com/pelletier/go-toml / TestDecodeReaderError

Function TestDecodeReaderError

unmarshaler_test.go:231–238  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

229}
230
231func 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
240func TestUnmarshal_Integers(t *testing.T) {
241 examples := []struct {

Callers

nothing calls this directly

Calls 2

DecodeMethod · 0.95
ErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…