Skip to content

Commit

Permalink
skip windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhuravlev committed Jan 3, 2025
1 parent 6bdea46 commit 9ef75cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/fsh/mem_fs_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
package fsh_test

import (
"runtime"
"testing"

"github.com/kazhuravlev/toolset/internal/fsh"
"github.com/stretchr/testify/require"
)

func TestMemFS_GetTree(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("skip for Windows")
}

fs := fsh.NewMemFS(map[string]string{
"/dir/file1.txt": `Hello 1!`,
"/dir/file2.txt": `Hello 2!`,
Expand All @@ -26,6 +31,10 @@ func TestMemFS_GetTree(t *testing.T) {
}

func TestMemFS_SymlinkIfPossible(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("skip for Windows")
}

fs := fsh.NewMemFS(nil)

require.NoError(t, fs.SymlinkIfPossible("/tmp/a", "/tmp/a"))
Expand Down

0 comments on commit 9ef75cc

Please sign in to comment.