MCPcopy
hub / github.com/getsops/sops / TestDecodeEmpty

Function TestDecodeEmpty

stores/json/store_test.go:188–193  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

186}
187
188func TestDecodeEmpty(t *testing.T) {
189 in := ``
190 _, err := Store{}.treeBranchFromJSON([]byte(in))
191 assert.NotNil(t, err)
192 assert.Equal(t, "EOF", err.Error())
193}
194
195func TestDecodeNestedJSONObject(t *testing.T) {
196 in := `{"foo": {"foo": "bar"}}`

Callers

nothing calls this directly

Calls 2

treeBranchFromJSONMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected