INNER CODE UNIT · Go

TestFlagSuggestionsForCommand

chriswalz/bit · cmd/cmd_test.go:126

func TestFlagSuggestionsForCommand(t *testing.T) {
	// fixme add support for all git sub commands
	expects :=
		[]struct {
			cmd             string
			expectedOptions []string
			expectedFlags   []string
		}{
			{
				"rebase",
				[]string{"-i"},
				[]string{"--continue", "--abort", "--merge"},
			},
			{
				"push",
				[]string{"-f"},
				[]string{"--force", "--dry-run", "--porcelain", "--delete", "--tags"},
			},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…