MCPcopy Create free account
hub / github.com/coder/coder / NewRunner

Function NewRunner

scaletest/notifications/run.go:47–55  ·  view source on GitHub ↗
(client *codersdk.Client, cfg Config)

Source from the content-addressed store, hash-verified

45}
46
47func NewRunner(client *codersdk.Client, cfg Config) *Runner {
48 return &Runner{
49 client: client,
50 cfg: cfg,
51 websocketReceiptTimes: make(map[uuid.UUID]time.Time),
52 smtpReceiptTimes: make(map[uuid.UUID]time.Time),
53 clock: quartz.NewReal(),
54 }
55}
56
57func (r *Runner) WithClock(clock quartz.Clock) *Runner {
58 r.clock = clock

Callers 3

TestRunFunction · 0.92
TestRunWithSMTPFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestRunFunction · 0.74
TestRunWithSMTPFunction · 0.74