aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/internal/fs/fs_windows_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cli/internal/fs/fs_windows_test.go')
-rw-r--r--cli/internal/fs/fs_windows_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/cli/internal/fs/fs_windows_test.go b/cli/internal/fs/fs_windows_test.go
new file mode 100644
index 0000000..4e71e2c
--- /dev/null
+++ b/cli/internal/fs/fs_windows_test.go
@@ -0,0 +1,18 @@
+//go:build windows
+// +build windows
+
+package fs
+
+import "testing"
+
+func TestDifferentVolumes(t *testing.T) {
+ p1 := "C:\\some\\path"
+ p2 := "D:\\other\\path"
+ contains, err := DirContainsPath(p1, p2)
+ if err != nil {
+ t.Errorf("DirContainsPath got error %v, want <nil>", err)
+ }
+ if contains {
+ t.Errorf("DirContainsPath got true, want false")
+ }
+}