diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-13 17:31:06 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-13 17:31:06 +0530 |
| commit | 359102295f4f852e8d9850fa3291c0a52e0edc94 (patch) | |
| tree | c19774758395af465d8235befae9715aaccc91ef | |
| parent | 1692950fabf37cf73a89d26c7e25d701f0872280 (diff) | |
| download | galleryd-chore/test-fixtures.tar.xz galleryd-chore/test-fixtures.zip | |
test(scanner): rename fixtures in scanner testchore/test-fixtures
| -rw-r--r-- | cmd/galleryd/main.go | 2 | ||||
| -rw-r--r-- | internal/scanner/scanner_test.go | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cmd/galleryd/main.go b/cmd/galleryd/main.go index e23f8a2..3b69474 100644 --- a/cmd/galleryd/main.go +++ b/cmd/galleryd/main.go @@ -24,7 +24,7 @@ func main() { scanner := scanner.New(scanner.Config{ Roots: []string{ - "/home/ranxom/Pictures", + ".", }, }) diff --git a/internal/scanner/scanner_test.go b/internal/scanner/scanner_test.go index 866b50a..1fe6d3e 100644 --- a/internal/scanner/scanner_test.go +++ b/internal/scanner/scanner_test.go @@ -20,9 +20,9 @@ func TestScanner(t *testing.T) { t.Run("find supported images", func(t *testing.T) { expected := map[string]struct{}{ - "cat.jpg": {}, - "dog.png": {}, - "beach.webp": {}, + "image.jpg": {}, + "image.png": {}, + "image.webp": {}, } for _, file := range files { @@ -45,7 +45,7 @@ func TestScanner(t *testing.T) { t.Run("skips hidden directories", func(t *testing.T) { for _, file := range files { - if filepath.Base(file.Path) == "nuclearlaunchcode.txt" { + if filepath.Base(file.Path) == ".hidden.jpg" { t.Fatal("hidden file entered the scanner") } } |