parent
d6e7d9c281
commit
cab767dafe
7 changed files with 641 additions and 0 deletions
17
cli/flags/util_test.go
Normal file
17
cli/flags/util_test.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package flags
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestEachName(t *testing.T) {
|
||||
expected := "*one*two*three"
|
||||
actual := ""
|
||||
|
||||
eachName(" one,two ,three", func(s string) {
|
||||
actual += "*" + s
|
||||
})
|
||||
require.Equal(t, expected, actual)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue