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

@@ -8,7 +8,7 @@ import (
)
func TestDeleteFile(t *testing.T) {
t.Run("delete not existing file", func(t *testing.T) {
t.Run("DeleteNotExistingFile", func(t *testing.T) {
app, router, _ := NewApiTest()
DeleteFile(router)
@@ -16,7 +16,7 @@ func TestDeleteFile(t *testing.T) {
r := PerformRequest(app, "DELETE", "/api/v1/photos/5678/files/23456hbg")
assert.Equal(t, http.StatusNotFound, r.Code)
})
t.Run("delete primary file", func(t *testing.T) {
t.Run("DeletePrimaryFile", func(t *testing.T) {
app, router, _ := NewApiTest()
DeleteFile(router)
@@ -24,7 +24,7 @@ func TestDeleteFile(t *testing.T) {
r := PerformRequest(app, "DELETE", "/api/v1/photos/ps6sg6be2lvl0yh7/files/fs6sg6bw45bnlqdw")
assert.Equal(t, http.StatusInternalServerError, r.Code)
})
t.Run("try to delete file", func(t *testing.T) {
t.Run("TryToDeleteFile", func(t *testing.T) {
app, router, _ := NewApiTest()
DeleteFile(router)