Skip to content
Myr

minor corrections to unit tests (#2003)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jun Nishimura · committed by GitHub · parent 60d056d · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:command_test.go+3 added-3 removed
436 unmodified lines
437 c.Flags().StringVar(&stringFlagValue, "sf", "", "")438439 output, err := executeCommand(c, "--intf=7", "--sf=abc", "one", "--", "two")440 if output != "" {441 t.Errorf("Unexpected output: %v", err)441 t.Errorf("Unexpected output: %v", output)442 }443 if err != nil {444 t.Errorf("Unexpected error: %v", err)445 }
28 unmodified lines
474 c.Flags().StringVarP(&stringFlagValue, "sf", "s", "", "")475476 output, err := executeCommand(c, "-i", "7", "-sabc", "one", "two")477 if output != "" {478 t.Errorf("Unexpected output: %v", err)478 t.Errorf("Unexpected output: %v", output)479 }480 if err != nil {481 t.Errorf("Unexpected error: %v", err)482 }
20 unmodified lines
503 childCmd.Flags().IntVarP(&intFlagValue, "intf", "i", -1, "")504505 output, err := executeCommand(rootCmd, "child", "-i7")506 if output != "" {507 t.Errorf("Unexpected output: %v", err)507 t.Errorf("Unexpected output: %v", output)508 }509 if err != nil {510 t.Errorf("Unexpected error: %v", err)511 }
2226 unmodified lines