MCPcopy
hub / github.com/grafana/k6 / Runtime

Struct Runtime

js/modulestest/runtime.go:25–32  ·  view source on GitHub ↗

Runtime is a helper struct that contains what is needed to run a (simple) module test

Source from the content-addressed store, hash-verified

23
24// Runtime is a helper struct that contains what is needed to run a (simple) module test
25type 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
35func NewRuntime(t testing.TB) *Runtime {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected