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

Function TestUnmarshalInvalidTarget

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

Source from the content-addressed store, hash-verified

2654}
2655
2656func TestUnmarshalInvalidTarget(t *testing.T) {
2657 x := "foo"
2658 err := toml.Unmarshal([]byte{}, x)
2659 assert.Error(t, err)
2660
2661 var m *map[string]interface{}
2662 err = toml.Unmarshal([]byte{}, m)
2663 assert.Error(t, err)
2664}
2665
2666func TestUnmarshalFloat32(t *testing.T) {
2667 t.Run("fits", func(t *testing.T) {

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…