MCPcopy Index your code
hub / github.com/getsops/sops / TestSetArrayNew

Function TestSetArrayNew

sops_test.go:1134–1139  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1132}
1133
1134func TestSetArrayNew(t *testing.T) {
1135 branch := TreeBranch{}
1136 set, changed := branch.Set([]interface{}{"foo", 0, 0}, "uno")
1137 assert.Equal(t, true, changed)
1138 assert.Equal(t, "uno", set[0].Value.([]interface{})[0].([]interface{})[0])
1139}
1140
1141func TestSetExisting(t *testing.T) {
1142 branch := TreeBranch{

Callers

nothing calls this directly

Calls 1

SetMethod · 0.95

Tested by

no test coverage detected