GetAllowance touches: - group_members_expanded - users - groups - org_members
(ctx context.Context, t *testing.T)
| 1251 | // - groups |
| 1252 | // - org_members |
| 1253 | func (c *committer) GetAllowance(ctx context.Context, t *testing.T) int64 { |
| 1254 | t.Helper() |
| 1255 | |
| 1256 | allowance, err := c.DBTx.GetQuotaAllowanceForUser(ctx, database.GetQuotaAllowanceForUserParams{ |
| 1257 | UserID: c.w.OwnerID, |
| 1258 | OrganizationID: c.w.OrganizationID, |
| 1259 | }) |
| 1260 | require.NoError(t, err) |
| 1261 | return allowance |
| 1262 | } |
| 1263 | |
| 1264 | func (c *committer) UpdateWorkspaceBuildCostByID(ctx context.Context, t *testing.T, cost int32) bool { |
| 1265 | t.Helper() |
no test coverage detected