2022-04-22 17:38:40 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestCliFlags_Cli(t *testing.T) {
|
|
|
|
cliFlags := Flags.Cli()
|
|
|
|
standard := Flags.Find([]string{})
|
|
|
|
|
2023-05-13 19:38:54 +02:00
|
|
|
assert.Equal(t, len(cliFlags), len(standard))
|
2022-04-22 17:38:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestCliFlags_Find(t *testing.T) {
|
|
|
|
cliFlags := Flags.Cli()
|
|
|
|
standard := Flags.Find([]string{})
|
2023-05-03 12:57:41 +02:00
|
|
|
essentials := Flags.Find([]string{Essentials})
|
2022-04-22 17:38:40 +02:00
|
|
|
other := Flags.Find([]string{"other"})
|
|
|
|
|
|
|
|
assert.Equal(t, len(standard), len(other))
|
2023-05-03 12:57:41 +02:00
|
|
|
assert.Equal(t, len(cliFlags), len(essentials))
|
2023-05-13 19:38:54 +02:00
|
|
|
assert.Equal(t, len(other), len(essentials))
|
2022-04-22 17:38:40 +02:00
|
|
|
}
|