(hostname string)
| 1353 | } |
| 1354 | |
| 1355 | func hasNoToken(hostname string) tokenAssertion { |
| 1356 | return func(t *testing.T, cfg gh.Config) { |
| 1357 | t.Helper() |
| 1358 | |
| 1359 | token := cfg.Authentication().ActiveToken(hostname).Token |
| 1360 | require.Empty(t, token) |
| 1361 | } |
| 1362 | } |
| 1363 | |
| 1364 | func hasActiveToken(hostname string, expectedToken string) tokenAssertion { |
| 1365 | return func(t *testing.T, cfg gh.Config) { |
no test coverage detected