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

Function initSetup

scripts/workspace-runtime-audit/runtimeaudit_test.go:357–366  ·  view source on GitHub ↗
(t *testing.T, db database.Store)

Source from the content-addressed store, hash-verified

355}
356
357func initSetup(t *testing.T, db database.Store) *setup {
358 usr := dbgen.User(t, db, database.User{})
359 org := dbfake.Organization(t, db).
360 Members(usr).
361 Do()
362 return &setup{
363 org: org.Org,
364 usr: usr,
365 }
366}
367
368type workspaceBuildArgs struct {
369 at time.Time

Callers 1

TestRuntimeAuditFunction · 0.85

Calls 4

UserFunction · 0.92
OrganizationFunction · 0.92
MembersMethod · 0.80
DoMethod · 0.65

Tested by

no test coverage detected