diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-13 14:23:30 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-13 14:23:30 +0530 |
| commit | 343933855797b9ebff6b759019718c8ddccb7b28 (patch) | |
| tree | 3bc13b172f41202adc9e66035e60836ed3a28944 /internal/metadata/reader_test.go | |
| parent | e48a9f9dafefef4844c49d417af8d13978455247 (diff) | |
| download | galleryd-343933855797b9ebff6b759019718c8ddccb7b28.tar.xz galleryd-343933855797b9ebff6b759019718c8ddccb7b28.zip | |
test: share image fixtures across packages
Diffstat (limited to 'internal/metadata/reader_test.go')
| -rw-r--r-- | internal/metadata/reader_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/metadata/reader_test.go b/internal/metadata/reader_test.go index ffbb587..0c9637b 100644 --- a/internal/metadata/reader_test.go +++ b/internal/metadata/reader_test.go @@ -14,7 +14,7 @@ func TestReader(t *testing.T) { t.Run("reads image dimensions", func(t *testing.T) { file := scanner.File{ - Path: filepath.Join("testdata", "Canon_40D.jpg"), + Path: filepath.Join("..", "testfixtures", "Canon_40D.jpg"), } metadata, err := reader.Read(context.Background(), file) @@ -29,7 +29,7 @@ func TestReader(t *testing.T) { t.Run("reads EXIF timestamp", func(t *testing.T) { file := scanner.File{ - Path: filepath.Join("testdata", "Canon_40D.jpg"), + Path: filepath.Join("..", "testfixtures", "Canon_40D.jpg"), } metadata, err := reader.Read(context.Background(), file) @@ -57,7 +57,7 @@ func TestReader(t *testing.T) { ) file := scanner.File{ - Path: filepath.Join("testdata", "no-exif.png"), + Path: filepath.Join("..", "testfixtures", "no-exif.png"), ModTime: modTime, } @@ -77,7 +77,7 @@ func TestReader(t *testing.T) { t.Run("returns default orientation", func(t *testing.T) { file := scanner.File{ - Path: filepath.Join("testdata", "no-exif.png"), + Path: filepath.Join("..", "testfixtures", "no-exif.png"), } metadata, err := reader.Read(context.Background(), file) |