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

Method Result

scaletest/harness/results.go:55–73  ·  view source on GitHub ↗

Results returns the results of the test run. Panics if the test run is not done yet.

()

Source from the content-addressed store, hash-verified

53// Results returns the results of the test run. Panics if the test run is not
54// done yet.
55func (r *TestRun) Result() RunResult {
56 select {
57 case <-r.done:
58 default:
59 panic("cannot get results of a test run that is not done yet")
60 }
61
62 return RunResult{
63 FullID: r.FullID(),
64 TestName: r.testName,
65 ID: r.id,
66 Logs: r.logs.String(),
67 Error: r.err,
68 StartedAt: r.started,
69 Duration: httpapi.Duration(r.duration),
70 DurationMS: r.duration.Milliseconds(),
71 Metrics: r.metrics,
72 }
73}
74
75// Results collates the results of all the test runs and returns them.
76func (h *TestHarness) Results() Results {

Callers 15

Test_TestRunFunction · 0.95
RoundTripMethod · 0.45
TestCSRFErrorFunction · 0.45
TestAPIKeyFunction · 0.45
TestTaskParamFunction · 0.45
TestOrganizationParamFunction · 0.45

Calls 3

FullIDMethod · 0.95
DurationTypeAlias · 0.92
StringMethod · 0.45

Tested by 15

Test_TestRunFunction · 0.76
RoundTripMethod · 0.36
TestCSRFErrorFunction · 0.36
TestAPIKeyFunction · 0.36
TestTaskParamFunction · 0.36
TestOrganizationParamFunction · 0.36