(t *testing.T)
| 234 | } |
| 235 | |
| 236 | func TestDoesGroupContainUser(t *testing.T) { |
| 237 | t.Parallel() |
| 238 | |
| 239 | c := newTestConfig() |
| 240 | |
| 241 | assert.True(t, c.doesGroupContainUser("an-admin", "admins", nil)) |
| 242 | assert.True(t, c.doesGroupContainUser("an-admin", "nested-admins", nil)) |
| 243 | assert.False(t, c.doesGroupContainUser("non-admin", "admins", nil)) |
| 244 | assert.False(t, c.doesGroupContainUser("non-admin", "nested-admins", nil)) |
| 245 | assert.False(t, c.doesGroupContainUser("an-admin", "loop", nil)) |
| 246 | } |
| 247 | |
| 248 | func TestCheckListsForUser(t *testing.T) { |
| 249 | t.Parallel() |
nothing calls this directly
no test coverage detected