Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
510
func
TestOverrides(t *testing.T) {
511
v := New()
512
v.Set(
"age"
, 40)
513
assert.Equal(t, 40, v.Get(
"age"
))
514
}
515
516
func
TestDefaultPost(t *testing.T) {
517
v := New()
Callers
nothing calls this directly
Calls
3
New
Function · 0.85
Get
Method · 0.65
Set
Method · 0.45
Tested by
no test coverage detected