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

Function TestDefaultPost

viper_test.go:516–521  ·  viper_test.go::TestDefaultPost
(t *testing.T)

Source from the content-addressed store, hash-verified

514}
515
516func TestDefaultPost(t *testing.T) {
517 v := New()
518 assert.NotEqual(t, "NYC", v.Get("state"))
519 v.SetDefault("state", "NYC")
520 assert.Equal(t, "NYC", v.Get("state"))
521}
522
523func TestAliases(t *testing.T) {
524 v := New()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
SetDefaultMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected