(t *testing.T)
| 1813 | } |
| 1814 | |
| 1815 | func TestGetUsersPagination(t *testing.T) { |
| 1816 | t.Parallel() |
| 1817 | client := coderdtest.New(t, nil) |
| 1818 | _ = coderdtest.CreateFirstUser(t, client) |
| 1819 | |
| 1820 | ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong) |
| 1821 | defer cancel() |
| 1822 | |
| 1823 | coderdtest.UsersPagination(ctx, t, client, nil, func(req codersdk.UsersRequest) ([]codersdk.ReducedUser, int) { |
| 1824 | res, err := client.Users(ctx, req) |
| 1825 | require.NoError(t, err) |
| 1826 | reduced := make([]codersdk.ReducedUser, len(res.Users)) |
| 1827 | for i, user := range res.Users { |
| 1828 | reduced[i] = user.ReducedUser |
| 1829 | } |
| 1830 | return reduced, res.Count |
| 1831 | }) |
| 1832 | } |
| 1833 | |
| 1834 | func TestPostTokens(t *testing.T) { |
| 1835 | t.Parallel() |
nothing calls this directly
no test coverage detected