b9181bee6f
Signed-off-by: Michael Mayer <michael@photoprism.app>
25 lines
559 B
Go
25 lines
559 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.Greater(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.Less(t, len(other), len(essentials))
|
|
}
|