testFns implements Runnable and Cleanable.
| 14 | |
| 15 | // testFns implements Runnable and Cleanable. |
| 16 | type 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 | |
| 24 | var ( |
| 25 | _ harness.Runnable = &testFns{} |
nothing calls this directly
no outgoing calls
no test coverage detected