Skip to content

Commit

Permalink
test: finder - fix the fsutil finder test error
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jun 4, 2023
1 parent 18aa036 commit df49e98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fsutil/finder/finder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ import (
"os"
"testing"

"github.com/gookit/goutil/fsutil"
"github.com/gookit/goutil/fsutil/finder"
"github.com/gookit/goutil/testutil/assert"
)

func TestMain(m *testing.M) {
_, _ = fsutil.PutContents("./testdata/test.txt", "hello, in test.txt")
m.Run()
}

func TestFinder_findFile(t *testing.T) {
f := finder.EmptyFinder().
ScanDir("./testdata").
Expand Down

0 comments on commit df49e98

Please sign in to comment.