mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
fix: add more coverage
This commit is contained in:
committed by
quobix
parent
0cbf094245
commit
fb545f9584
@@ -136,3 +136,11 @@ func TestYAMLNodeWithComplexKeysToJSON(t *testing.T) {
|
||||
}
|
||||
}`, string(j))
|
||||
}
|
||||
|
||||
func TestYAMLNodeToJSONInvalidNode(t *testing.T) {
|
||||
var v yaml.Node
|
||||
|
||||
j, err := json.YAMLNodeToJSON(&v, " ")
|
||||
assert.Nil(t, j)
|
||||
assert.Error(t, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user