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

Struct testFns

scaletest/harness/run_test.go:16–22  ·  view source on GitHub ↗

testFns implements Runnable and Cleanable.

Source from the content-addressed store, hash-verified

14
15// testFns implements Runnable and Cleanable.
16type testFns struct {
17 RunFn func(ctx context.Context, id string, logs io.Writer) error
18 // CleanupFn is optional if no cleanup is required.
19 CleanupFn func(ctx context.Context, id string, logs io.Writer) error
20 // GetMetricsFn is optional if no metric collection is required.
21 GetMetricsFn func() map[string]any
22}
23
24var (
25 _ harness.Runnable = &testFns{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected