(t *testing.T)
| 176 | } |
| 177 | |
| 178 | func TestCommandWithWorkingDir(t *testing.T) { |
| 179 | tempDir := t.TempDir() |
| 180 | ctx := context.Background() |
| 181 | stdout, _, err := NewBuilder(ctx, "pwd"). |
| 182 | WithWorkingDir(tempDir). |
| 183 | Prepare(). |
| 184 | RunAndGetOutput() |
| 185 | |
| 186 | require.NoError(t, err) |
| 187 | assert.Equal(t, []byte(tempDir+"\n"), stdout) |
| 188 | } |
| 189 | |
| 190 | func TestCommandEnvDoesNotEval(t *testing.T) { |
| 191 | ctx := context.Background() |
nothing calls this directly
no test coverage detected