2020-05-11 11:01:28 +02:00
|
|
|
package entity
|
2020-05-08 15:41:01 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
2020-05-30 14:52:47 +02:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-08 15:41:01 +02:00
|
|
|
func TestUpdatePhotoCounts(t *testing.T) {
|
|
|
|
err := UpdatePhotoCounts()
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|