fix: add more coverage

This commit is contained in:
Tristan Cartledge
2024-08-05 14:40:52 +01:00
committed by quobix
parent 0cbf094245
commit fb545f9584

View File

@@ -136,3 +136,11 @@ func TestYAMLNodeWithComplexKeysToJSON(t *testing.T) {
} }
}`, string(j)) }`, string(j))
} }
func TestYAMLNodeToJSONInvalidNode(t *testing.T) {
var v yaml.Node
j, err := json.YAMLNodeToJSON(&v, " ")
assert.Nil(t, j)
assert.Error(t, err)
}