(t *testing.T)
| 2478 | } |
| 2479 | |
| 2480 | func Test_printPreInstallDisclaimer(t *testing.T) { |
| 2481 | ios, _, _, _ := iostreams.Test() |
| 2482 | cs := ios.ColorScheme() |
| 2483 | var buf strings.Builder |
| 2484 | printPreInstallDisclaimer(&buf, cs) |
| 2485 | output := buf.String() |
| 2486 | assert.Contains(t, output, "not verified by GitHub") |
| 2487 | assert.Contains(t, output, "prompt") |
| 2488 | assert.Contains(t, output, "malicious") |
| 2489 | } |
| 2490 | |
| 2491 | func Test_selectSkillsWithSelector_noDisclaimer(t *testing.T) { |
| 2492 | ios, _, _, stderr := iostreams.Test() |
nothing calls this directly
no test coverage detected