MCPcopy Index your code
hub / github.com/coder/coder / GetAllowance

Method GetAllowance

enterprise/coderd/workspacequota_test.go:1253–1262  ·  view source on GitHub ↗

GetAllowance touches: - group_members_expanded - users - groups - org_members

(ctx context.Context, t *testing.T)

Source from the content-addressed store, hash-verified

1251// - groups
1252// - org_members
1253func (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
1264func (c *committer) UpdateWorkspaceBuildCostByID(ctx context.Context, t *testing.T, cost int32) bool {
1265 t.Helper()

Callers 1

Calls 2

HelperMethod · 0.65

Tested by

no test coverage detected