MCPcopy
hub / github.com/spf13/viper / TestOverrides

Function TestOverrides

viper_test.go:510–514  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

508}
509
510func TestOverrides(t *testing.T) {
511 v := New()
512 v.Set("age", 40)
513 assert.Equal(t, 40, v.Get("age"))
514}
515
516func TestDefaultPost(t *testing.T) {
517 v := New()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
GetMethod · 0.65
SetMethod · 0.45

Tested by

no test coverage detected