photoprism/internal/config/cli_flags_test.go
Michael Mayer 0b780defbb Config: Update flags.go and cli_flags_test.go
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-05-13 19:38:54 +02:00

25 lines
558 B
Go

package config
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCliFlags_Cli(t *testing.T) {
cliFlags := Flags.Cli()
standard := Flags.Find([]string{})
assert.Equal(t, len(cliFlags), len(standard))
}
func TestCliFlags_Find(t *testing.T) {
cliFlags := Flags.Cli()
standard := Flags.Find([]string{})
essentials := Flags.Find([]string{Essentials})
other := Flags.Find([]string{"other"})
assert.Equal(t, len(standard), len(other))
assert.Equal(t, len(cliFlags), len(essentials))
assert.Equal(t, len(other), len(essentials))
}