(hostname string)
| 553 | } |
| 554 | |
| 555 | func hasNoToken(hostname string) tokenAssertion { |
| 556 | return func(t *testing.T, cfg gh.Config) { |
| 557 | t.Helper() |
| 558 | |
| 559 | token, _ := cfg.Authentication().ActiveToken(hostname) |
| 560 | require.Empty(t, token) |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | func hasActiveToken(hostname string, expectedToken string) tokenAssertion { |
| 565 | return func(t *testing.T, cfg gh.Config) { |
no test coverage detected