(message string, _ bool)
| 572 | } |
| 573 | |
| 574 | func (p *fakePrompt) handler(message string, _ bool) (bool, error) { |
| 575 | p.prompts = append(p.prompts, message) |
| 576 | if len(p.answers) == 0 { |
| 577 | return true, nil |
| 578 | } |
| 579 | a := p.answers[0] |
| 580 | p.answers = p.answers[1:] |
| 581 | return a, nil |
| 582 | } |
| 583 | |
| 584 | func Test_checkEnvironmentVariables_silent_when_no_findings(t *testing.T) { |
| 585 | project := loadProjectForTest(t, map[string]string{ |
nothing calls this directly
no outgoing calls
no test coverage detected