(t *testing.T, tc testCaseInit)
| 39 | } |
| 40 | |
| 41 | func (tb testBuild) fn(t *testing.T, tc testCaseInit) { |
| 42 | bc := BuildCommand{ |
| 43 | Meta: tc.Meta, |
| 44 | } |
| 45 | |
| 46 | args := []string{tc.packerUserFolder} |
| 47 | want := tb.want |
| 48 | if got := bc.Run(args); got != want { |
| 49 | t.Errorf("BuildCommand.Run() = %v, want %v", got, want) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func TestInitCommand_Run(t *testing.T) { |
| 54 | // These tests will try to optimise for doing the least amount of github api |