bumped coverage

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2024-01-15 14:22:30 -05:00
parent 55a2065f8d
commit 1da99d7efe
2 changed files with 2182 additions and 2173 deletions

View File

@@ -568,6 +568,11 @@ components:
x, y = f.(*rolodexFile).Index(cf)
assert.Nil(t, x)
assert.Error(t, y)
// file file that is not local, but is remote
f, _ = rolodex.Open("/bingo/jingo.yaml")
assert.NotNil(t, f)
}
func test_rolodexDeepRefServer(a, b, c, d, e []byte) *httptest.Server {
@@ -593,6 +598,10 @@ func test_rolodexDeepRefServer(a, b, c, d, e []byte) *httptest.Server {
_, _ = rw.Write(e)
return
}
if strings.HasSuffix(req.URL.String(), "/bingo/jingo.yaml") {
_, _ = rw.Write([]byte("openapi: 3.1.0"))
return
}
rw.WriteHeader(http.StatusInternalServerError)
rw.Write([]byte("500 - COMPUTAR SAYS NO!"))
}))