From dd84b9d64fb98746a230cd24233ff50a562c39c9 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Apr 2023 01:36:44 +0800 Subject: --- cli/internal/fs/fs_windows_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cli/internal/fs/fs_windows_test.go (limited to 'cli/internal/fs/fs_windows_test.go') 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 ", err) + } + if contains { + t.Errorf("DirContainsPath got true, want false") + } +} -- cgit v1.2.3-70-g09d2