(t *testing.T)
| 2422 | } |
| 2423 | |
| 2424 | func Test_printPreInstallDisclaimer(t *testing.T) { |
| 2425 | ios, _, _, _ := iostreams.Test() |
| 2426 | cs := ios.ColorScheme() |
| 2427 | var buf strings.Builder |
| 2428 | printPreInstallDisclaimer(&buf, cs) |
| 2429 | output := buf.String() |
| 2430 | assert.Contains(t, output, "not verified by GitHub") |
| 2431 | assert.Contains(t, output, "prompt") |
| 2432 | assert.Contains(t, output, "malicious") |
| 2433 | } |
| 2434 | |
| 2435 | func Test_selectSkillsWithSelector_noDisclaimer(t *testing.T) { |
| 2436 | ios, _, _, stderr := iostreams.Test() |
nothing calls this directly
no test coverage detected