(hostname string, expectedToken string)
| 562 | } |
| 563 | |
| 564 | func hasActiveToken(hostname string, expectedToken string) tokenAssertion { |
| 565 | return func(t *testing.T, cfg gh.Config) { |
| 566 | t.Helper() |
| 567 | |
| 568 | token, _ := cfg.Authentication().ActiveToken(hostname) |
| 569 | require.Equal(t, expectedToken, token) |
| 570 | } |
| 571 | } |
no test coverage detected