more coverage bumps

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2023-10-31 13:58:58 -04:00
parent 9746f51a0e
commit 0b08a63e63
4 changed files with 351 additions and 237 deletions

View File

@@ -96,10 +96,10 @@ type test_badfs struct {
func (t *test_badfs) Open(v string) (fs.File, error) {
ok := false
if v != "/" && v != "http://localhost/test.yaml" {
if v != "/" && v != "." && v != "http://localhost/test.yaml" {
ok = true
}
if v == "http://localhost/goodstat.yaml" || v == "goodstat.yaml" {
if v == "http://localhost/goodstat.yaml" || strings.HasSuffix(v, "goodstat.yaml") {
ok = true
t.goodstat = true
}