(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestIsAskpassInvocation(t *testing.T) { |
| 12 | t.Parallel() |
| 13 | |
| 14 | assert.True(t, isAskpassInvocation([]string{shell.AskpassCommandName})) |
| 15 | assert.True(t, isAskpassInvocation([]string{shell.AskpassCommandName, "--", "[sudo] password:"})) |
| 16 | assert.False(t, isAskpassInvocation(nil)) |
| 17 | assert.False(t, isAskpassInvocation([]string{"run"})) |
| 18 | assert.False(t, isAskpassInvocation([]string{"run", shell.AskpassCommandName})) |
| 19 | } |
| 20 | |
| 21 | func TestAskpassIsManagementInvocation(t *testing.T) { |
| 22 | t.Parallel() |
nothing calls this directly
no test coverage detected