mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Tests: Add unit tests
This commit is contained in:
@@ -19,3 +19,11 @@ func BenchmarkUUID(b *testing.B) {
|
||||
UUID()
|
||||
}
|
||||
}
|
||||
|
||||
func TestState(t *testing.T) {
|
||||
for n := 0; n < 5; n++ {
|
||||
s := State()
|
||||
t.Logf("UUID %d: %s", n, s)
|
||||
assert.Equal(t, 36, len(s))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user