photoprism/internal/entity/entity_counts_test.go
Michael Mayer c74fcbf282 People: Show real name instead of uid in logs #1438 #2182
Since caching all subject data proved too complex in the time available,
this implementation uses a simple key/value lookup table to cache
subject names and perform backward searches by uid.
2022-04-04 14:21:43 +02:00

26 lines
354 B
Go

package entity
import (
"testing"
)
func TestLabelCounts(t *testing.T) {
results := LabelCounts()
if len(results) == 0 {
t.Fatal("at least one result expected")
}
for _, result := range results {
t.Logf("LABEL COUNT: %+v", result)
}
}
func TestUpdatePhotoCounts(t *testing.T) {
err := UpdateCounts()
if err != nil {
t.Fatal(err)
}
}