Bumping coverage on 0.6.0

This commit is contained in:
Dave Shanley
2023-02-18 17:10:52 -05:00
parent e6626fe22e
commit c5e9dbc360
5 changed files with 114 additions and 23 deletions

View File

@@ -546,21 +546,6 @@ func TestSpecIndex_FindComponenth(t *testing.T) {
assert.Nil(t, index.FindComponent("I-do-not-exist", nil))
}
func TestSpecIndex_performExternalLookup(t *testing.T) {
yml := `{
"openapi": "3.1.0",
"paths": [
{"/": {
"get": {}
}}
]
}`
var rootNode yaml.Node
yaml.Unmarshal([]byte(yml), &rootNode)
index := NewSpecIndex(&rootNode)
assert.Len(t, index.GetPathsNode().Content, 1)
}
func TestSpecIndex_TestPathsNodeAsArray(t *testing.T) {
yml := `components: