(t *testing.T)
| 2534 | } |
| 2535 | |
| 2536 | func Test_printPreInstallDisclaimer(t *testing.T) { |
| 2537 | ios, _, _, _ := iostreams.Test() |
| 2538 | cs := ios.ColorScheme() |
| 2539 | var buf strings.Builder |
| 2540 | printPreInstallDisclaimer(&buf, cs) |
| 2541 | output := buf.String() |
| 2542 | assert.Contains(t, output, "not verified by GitHub") |
| 2543 | assert.Contains(t, output, "prompt") |
| 2544 | assert.Contains(t, output, "malicious") |
| 2545 | } |
| 2546 | |
| 2547 | func Test_selectSkillsWithSelector_noDisclaimer(t *testing.T) { |
| 2548 | ios, _, _, stderr := iostreams.Test() |
nothing calls this directly
no test coverage detected