We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34a0930 commit 84e2a3dCopy full SHA for 84e2a3d
pkg/testcoverage/path/path_test.go
@@ -0,0 +1,30 @@
1
+package path_test
2
+
3
+import (
4
+ "runtime"
5
+ "testing"
6
7
+ . "github.com/vladopajic/go-test-coverage/v2/pkg/testcoverage/path"
8
9
+ "github.com/stretchr/testify/assert"
10
+)
11
12
+func Test_NormalizeForOS(t *testing.T) {
13
+ t.Parallel()
14
15
+ if runtime.GOOS == "windows" {
16
+ assert.Equal(t, "foo\\bar", NormalizeForOS("foo/bar"))
17
+ } else {
18
+ assert.Equal(t, "foo/bar", NormalizeForOS("foo/bar"))
19
+ }
20
+}
21
22
+func Test_NormalizeForTool(t *testing.T) {
23
24
25
26
+ assert.Equal(t, "foo/bar", NormalizeForTool("foo\\bar"))
27
28
+ assert.Equal(t, "foo/bar", NormalizeForTool("foo/bar"))
29
30
0 commit comments