(t *testing.T)
| 710 | } |
| 711 | |
| 712 | func Test_printAuthWarnings(t *testing.T) { |
| 713 | ios, _, _, _ := iostreams.Test() |
| 714 | authCfg := warningsAuthConfig{ |
| 715 | AuthConfig: config.NewMockConfig().Authentication(), |
| 716 | warnings: []string{"first line\nsecond line", "another warning"}, |
| 717 | } |
| 718 | |
| 719 | var out bytes.Buffer |
| 720 | printAuthWarnings(&out, ios.ColorScheme(), authCfg) |
| 721 | |
| 722 | assert.Equal(t, "! first line\n second line\n! another warning\n", out.String()) |
| 723 | } |
nothing calls this directly
no test coverage detected