(t *testing.T)
| 2446 | } |
| 2447 | |
| 2448 | func Test_printPreInstallDisclaimer(t *testing.T) { |
| 2449 | ios, _, _, _ := iostreams.Test() |
| 2450 | cs := ios.ColorScheme() |
| 2451 | var buf strings.Builder |
| 2452 | printPreInstallDisclaimer(&buf, cs) |
| 2453 | output := buf.String() |
| 2454 | assert.Contains(t, output, "not verified by GitHub") |
| 2455 | assert.Contains(t, output, "prompt") |
| 2456 | assert.Contains(t, output, "malicious") |
| 2457 | } |
| 2458 | |
| 2459 | func Test_selectSkillsWithSelector_noDisclaimer(t *testing.T) { |
| 2460 | ios, _, _, stderr := iostreams.Test() |
nothing calls this directly
no test coverage detected