MCPcopy
hub / github.com/mitchellh/mapstructure / TestBasic_IntWithFloat

Function TestBasic_IntWithFloat

mapstructure_test.go:320–332  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

318}
319
320func TestBasic_IntWithFloat(t *testing.T) {
321 t.Parallel()
322
323 input := map[string]interface{}{
324 "vint": float64(42),
325 }
326
327 var result Basic
328 err := Decode(input, &result)
329 if err != nil {
330 t.Fatalf("got an err: %s", err)
331 }
332}
333
334func TestBasic_Merge(t *testing.T) {
335 t.Parallel()

Callers

nothing calls this directly

Calls 1

DecodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…