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

Method AddRun

scaletest/harness/run.go:46–51  ·  view source on GitHub ↗

AddRun creates a new *TestRun with the given name, ID and Runnable, adds it to the harness and returns it. Panics if the harness has been started, or a test with the given run.FullID() is already registered. This is a convenience method that calls NewTestRun() and h.RegisterRun().

(testName string, id string, runner Runnable)

Source from the content-addressed store, hash-verified

44//
45// This is a convenience method that calls NewTestRun() and h.RegisterRun().
46func (h *TestHarness) AddRun(testName string, id string, runner Runnable) *TestRun {
47 run := NewTestRun(testName, id, runner)
48 h.RegisterRun(run)
49
50 return run
51}
52
53// RegisterRun registers the given *TestRun with the harness. Panics if the
54// harness has been started, or a test with the given run.FullID() is already

Callers 13

scaletestChatMethod · 0.95
scaletestTaskStatusMethod · 0.95
scaletestBridgeMethod · 0.95
scaletestPrebuildsMethod · 0.95
scaletestCleanupMethod · 0.95
scaletestDashboardMethod · 0.95
scaletestAutostartMethod · 0.95

Calls 2

RegisterRunMethod · 0.95
NewTestRunFunction · 0.85

Tested by 1

Test_TestHarnessFunction · 0.76