mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 20:47:45 +00:00
Bumping coverage on 0.6.0
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user