photoprism/internal/entity/query/duplicates_test.go
Michael Mayer 94b6631b3d Test: Use PascalCase names for all Go subtests in /internal
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-02 14:50:02 +02:00

27 lines
491 B
Go

package query
import (
"testing"
"github.com/stretchr/testify/assert"
)
// TODO find duplicates
func TestDuplicates(t *testing.T) {
t.Run("Success", func(t *testing.T) {
if files, err := Duplicates(10, 0, ""); err != nil {
t.Fatal(err)
} else if files == nil {
t.Fatal("files must not be nil")
}
})
t.Run("PathnameNotEmpty", func(t *testing.T) {
files, err := Duplicates(10, 0, "/holiday/sea.jpg")
if err != nil {
t.Fatal(err)
}
assert.Empty(t, files)
})
}