(t *testing.T)
| 600 | } |
| 601 | |
| 602 | func TestUsersForHostNoHost(t *testing.T) { |
| 603 | // Given we have a config with no hosts |
| 604 | authCfg := newTestAuthConfig(t) |
| 605 | |
| 606 | // When we get the users for a host that doesn't exist |
| 607 | users := authCfg.UsersForHost("github.com") |
| 608 | |
| 609 | // Then it returns nil |
| 610 | require.Nil(t, users) |
| 611 | } |
| 612 | |
| 613 | func TestUsersForHostWithUsers(t *testing.T) { |
| 614 | // Given we have a config with a host and users |
nothing calls this directly
no test coverage detected
searching dependent graphs…