(t *testing.T)
| 85 | } |
| 86 | |
| 87 | func Test_authRepo_SetAdminUserCacheInfo(t *testing.T) { |
| 88 | authRepo := auth.NewAuthRepo(testDataSource) |
| 89 | |
| 90 | err := authRepo.SetAdminUserCacheInfo(context.TODO(), accessToken, &entity.UserCacheInfo{UserID: userID}) |
| 91 | require.NoError(t, err) |
| 92 | |
| 93 | cacheInfo, err := authRepo.GetAdminUserCacheInfo(context.TODO(), accessToken) |
| 94 | require.NoError(t, err) |
| 95 | assert.Equal(t, userID, cacheInfo.UserID) |
| 96 | } |
| 97 | |
| 98 | func Test_authRepo_RemoveAdminUserCacheInfo(t *testing.T) { |
| 99 | authRepo := auth.NewAuthRepo(testDataSource) |
nothing calls this directly
no test coverage detected