(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func (c *FormatForShellQuotedArgsTestCase) Assert(t *testing.T) { |
| 44 | actualCmd, actualArgs := FormatForShellQuotedArgs(c.GivenCmd, c.GivenArgs) |
| 45 | |
| 46 | assert.Equal(t, "sh", actualCmd, |
| 47 | "subprocess: expected FormatForShell command to equal 'sh' (was #%v)", |
| 48 | actualCmd) |
| 49 | assert.Equal(t, c.ExpectedArgs, actualArgs, |
| 50 | "subprocess: expected FormatForShell(%q, %v) to equal %#v (was %#v)", |
| 51 | c.GivenCmd, c.GivenArgs, c.ExpectedArgs, actualArgs, |
| 52 | ) |
| 53 | } |
| 54 | |
| 55 | func TestFormatForShellQuotedArgs(t *testing.T) { |
| 56 | for desc, c := range map[string]FormatForShellQuotedArgsTestCase{ |
nothing calls this directly
no test coverage detected