Runtime is a helper struct that contains what is needed to run a (simple) module test
| 23 | |
| 24 | // Runtime is a helper struct that contains what is needed to run a (simple) module test |
| 25 | type Runtime struct { |
| 26 | VU *VU |
| 27 | EventLoop *eventloop.EventLoop |
| 28 | CancelContext func() |
| 29 | BuiltinMetrics *metrics.BuiltinMetrics |
| 30 | |
| 31 | mr *modules.ModuleResolver |
| 32 | } |
| 33 | |
| 34 | // NewRuntime will create a new test runtime and will cancel the context on test/benchmark end |
| 35 | func NewRuntime(t testing.TB) *Runtime { |
nothing calls this directly
no outgoing calls
no test coverage detected