(t *testing.T)
| 172 | } |
| 173 | |
| 174 | func TestDecodeNumber(t *testing.T) { |
| 175 | in := `42` |
| 176 | _, err := Store{}.treeBranchFromJSON([]byte(in)) |
| 177 | assert.NotNil(t, err) |
| 178 | assert.Equal(t, "SOPS only supports JSON files with a top-level object (starting with '{'), not other JSON types. Got 42 of type int instead", err.Error()) |
| 179 | } |
| 180 | |
| 181 | func TestDecodeArray(t *testing.T) { |
| 182 | in := ` [42] ` |
nothing calls this directly
no test coverage detected