diff options
| author | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-07-13 14:44:12 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-13 14:44:12 +0530 |
| commit | cc639337ed5ccb4634b2a338f764cf9c73b02e4f (patch) | |
| tree | eae608923098a07f1413988cf0c79fc8ce4211be /internal/metadata/reader_test.go | |
| parent | ed70370d9f58d39c3b31f5506e449aeb5d562a77 (diff) | |
| parent | c2e38ad8c3cff2d3c6ea627855b2b4f02dc3e9ba (diff) | |
| download | galleryd-cc639337ed5ccb4634b2a338f764cf9c73b02e4f.tar.xz galleryd-cc639337ed5ccb4634b2a338f764cf9c73b02e4f.zip | |
Merge pull request #5 from RanXom/feat/thumbnail
Feat/thumbnail: implement thumbnail generation and caching
Diffstat (limited to 'internal/metadata/reader_test.go')
| -rw-r--r-- | internal/metadata/reader_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/metadata/reader_test.go b/internal/metadata/reader_test.go index ffbb587..772f078 100644 --- a/internal/metadata/reader_test.go +++ b/internal/metadata/reader_test.go @@ -2,11 +2,11 @@ package metadata import ( "context" - "path/filepath" "testing" "time" "github.com/RanXom/galleryd/internal/scanner" + "github.com/RanXom/galleryd/internal/testfixtures" ) func TestReader(t *testing.T) { @@ -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: testfixtures.Canon40D(), } 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: testfixtures.Canon40D(), } 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: testfixtures.NoEXIF(), 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: testfixtures.NoEXIF(), } metadata, err := reader.Read(context.Background(), file) |