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