(t *testing.T)
| 69 | } |
| 70 | |
| 71 | func (c *FormatForShellTestCase) Assert(t *testing.T) { |
| 72 | actualCmd, actualArgs := FormatForShell(c.GivenCmd, c.GivenArgs) |
| 73 | |
| 74 | assert.Equal(t, "sh", actualCmd, |
| 75 | "subprocess: expected FormatForShell command to equal 'sh' (was #%v)", |
| 76 | actualCmd) |
| 77 | assert.Equal(t, c.ExpectedArgs, actualArgs, |
| 78 | "subprocess: expected FormatForShell(%q, %v) to equal %#v (was %#v)", |
| 79 | c.GivenCmd, c.GivenArgs, c.ExpectedArgs, actualArgs, |
| 80 | ) |
| 81 | } |
| 82 | |
| 83 | func TestFormatForShell(t *testing.T) { |
| 84 | for desc, c := range map[string]FormatForShellTestCase{ |
nothing calls this directly
no test coverage detected