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

Function TestDecoderReadError

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

Source from the content-addressed store, hash-verified

5474}
5475
5476func TestDecoderReadError(t *testing.T) {
5477 d := toml.NewDecoder(failingReader{})
5478 x := map[string]interface{}{}
5479 assert.Error(t, d.Decode(&x))
5480}
5481
5482type failingReader struct{}
5483

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…