Test: Use PascalCase names for all Go subtests in /internal

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-02 14:50:02 +02:00
parent c68493da8a
commit 94b6631b3d
239 changed files with 1909 additions and 1909 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func TestPhoto_Optimize(t *testing.T) {
t.Run("update", func(t *testing.T) {
t.Run("Update", func(t *testing.T) {
photo := PhotoFixtures.Get("Photo19")
if updated, merged, err := photo.Optimize(false, false, true, false); err != nil {
@@ -26,7 +26,7 @@ func TestPhoto_Optimize(t *testing.T) {
t.Errorf("no photos should be merged")
}
})
t.Run("photo without id", func(t *testing.T) {
t.Run("PhotoWithoutId", func(t *testing.T) {
photo := Photo{}
result, merged, err := photo.Optimize(false, false, true, false)
assert.Error(t, err)