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/gallery | |
| 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/gallery')
| -rw-r--r-- | internal/gallery/builder_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/gallery/builder_test.go b/internal/gallery/builder_test.go index 88b4533..634bd89 100644 --- a/internal/gallery/builder_test.go +++ b/internal/gallery/builder_test.go @@ -2,12 +2,12 @@ package gallery import ( "context" - "path/filepath" "testing" "time" "github.com/RanXom/galleryd/internal/metadata" "github.com/RanXom/galleryd/internal/scanner" + "github.com/RanXom/galleryd/internal/testfixtures" ) func TestBuilder(t *testing.T) { @@ -17,8 +17,8 @@ func TestBuilder(t *testing.T) { t.Run("builds gallery photos", func(t *testing.T) { files := []scanner.File{ { - Path: filepath.Join("..", "metadata", "testdata", "Canon_40D.jpg"), - Root: "testdata", + Path: testfixtures.Canon40D(), + Root: "testfixtures", RelativePath: "Canon_40D.jpg", ModTime: time.Now(), }, @@ -36,7 +36,7 @@ func TestBuilder(t *testing.T) { t.Run("generates deterministic ids", func(t *testing.T) { file := scanner.File{ - Path: filepath.Join("..", "metadata", "testdata", "Canon_40D.jpg"), + Path: testfixtures.Canon40D(), Root: "photos", RelativePath: "Canon_40D.jpg", ModTime: time.Now(), |