mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-11 16:24:11 +01:00
24 lines
379 B
Go
24 lines
379 B
Go
package fs
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestProcessed(t *testing.T) {
|
|
t.Run("Jpeg", func(t *testing.T) {
|
|
assert.True(t, Processed.Processed())
|
|
assert.False(t, Found.Processed())
|
|
})
|
|
}
|
|
|
|
func TestDoneProcessedCount(t *testing.T) {
|
|
d := Done{
|
|
"a.jpg": Found,
|
|
"b.jpg": Processed,
|
|
"c.jpg": 0,
|
|
}
|
|
assert.Equal(t, 1, d.Processed())
|
|
}
|