bumped coverage

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2024-01-15 12:58:46 -05:00
parent 15d304da1b
commit e677566cd8

View File

@@ -42,6 +42,16 @@ func TestCheckPathOverlap(t *testing.T) {
} }
} }
func TestCheckPathOverlap_CheckSlash(t *testing.T) {
pathA := `/Users/pb33f`
pathB := `Users/pb33f\files\thing.yaml`
expected := `/Users/pb33f/files\thing.yaml`
result := CheckPathOverlap(pathA, pathB, `\`)
if result != expected {
t.Errorf("Expected %s, got %s", expected, result)
}
}
func TestCheckPathOverlap_VariationA(t *testing.T) { func TestCheckPathOverlap_VariationA(t *testing.T) {
pathA := `/Users/pb33f` pathA := `/Users/pb33f`
pathB := `pb33f/files/thing.yaml` pathB := `pb33f/files/thing.yaml`