(t *testing.T)
| 619 | } |
| 620 | |
| 621 | func TestUsersForHostNoHost(t *testing.T) { |
| 622 | // Given we have a config with no hosts |
| 623 | authCfg := newTestAuthConfig(t) |
| 624 | |
| 625 | // When we get the users for a host that doesn't exist |
| 626 | users := authCfg.UsersForHost("github.com") |
| 627 | |
| 628 | // Then it returns nil |
| 629 | require.Nil(t, users) |
| 630 | } |
| 631 | |
| 632 | func TestUsersForHostWithUsers(t *testing.T) { |
| 633 | // Given we have a config with a host and users |
nothing calls this directly
no test coverage detected