diff options
| author | ewy <ewy0@protonmail.com> | 2026-05-17 01:56:44 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-05-17 01:56:44 +0200 |
| commit | 5e71045120ba15087b45ba7a46b8dc12532e87c7 (patch) | |
| tree | 40131d497ec6e291c4b48bd1006b76427414310f /indexers/pikdex/index_test.go | |
| parent | f5807d9f3a6c96e70912b61fac17120f412b5782 (diff) | |
fix existing tests and import loop
Diffstat (limited to 'indexers/pikdex/index_test.go')
| -rw-r--r-- | indexers/pikdex/index_test.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indexers/pikdex/index_test.go b/indexers/pikdex/index_test.go index c49d67f..8a82e55 100644 --- a/indexers/pikdex/index_test.go +++ b/indexers/pikdex/index_test.go @@ -1,6 +1,7 @@ package pikdex import ( + "github.com/ewy1/pik/paths" "github.com/stretchr/testify/assert" "io/fs" "testing" @@ -8,7 +9,7 @@ import ( ) func TestUwudex_WantsWalk_AnyRoot(t *testing.T) { - for _, r := range Roots { + for _, r := range paths.Roots { data := fstest.MapFS{ r: &fstest.MapFile{ Data: nil, @@ -25,11 +26,11 @@ func TestUwudex_WantsWalk_AnyRoot(t *testing.T) { func TestUwudex_WantsWalk_TwoRoots(t *testing.T) { data := fstest.MapFS{ - Roots[0]: &fstest.MapFile{ + paths.Roots[0]: &fstest.MapFile{ Data: nil, Mode: fs.ModeDir, }, - Roots[1]: &fstest.MapFile{ + paths.Roots[1]: &fstest.MapFile{ Data: nil, Mode: fs.ModeDir, }, @@ -37,7 +38,7 @@ func TestUwudex_WantsWalk_TwoRoots(t *testing.T) { u := &pikdex{} result, r, err := u.WantsWalk(data) // no guarantee we pick any one lol - assert.Contains(t, Roots, r) + assert.Contains(t, paths.Roots, r) assert.NoError(t, err) assert.True(t, result) } |
