INNER CODE UNIT · Go
TestCompletion
chriswalz/bit · cmd/cmd_test.go:179
func TestCompletion(t *testing.T) {
suggestionsTree, _ := CreateSuggestionMap(BitCmd)
expects :=
[]struct {
line string
predictions []string
}{
{
"bit rebase ",
[]string{"master", "rebase-squash"},
},
{
"bit rebase --",
[]string{"--continue", "--abort", "--merge"},
},
{
"bit rebase --continue ",
[]string{"master", "rebase-squash"},