MCPcopy
hub / github.com/firecracker-microvm/firecracker-containerd / Prepare

Function Prepare

internal/integtest/prepare.go:25–34  ·  view source on GitHub ↗

Prepare is a common integration test setup function which ensures isolation and prepares the runtime configuration for firecracker-containerd

(t testing.TB, options ...func(*config.Config))

Source from the content-addressed store, hash-verified

23// Prepare is a common integration test setup function which ensures
24// isolation and prepares the runtime configuration for firecracker-containerd
25func Prepare(t testing.TB, options ...func(*config.Config)) {
26 t.Helper()
27
28 internal.RequiresIsolation(t)
29
30 err := writeRuntimeConfig(options...)
31 if err != nil {
32 t.Error(err)
33 }
34}

Calls 3

RequiresIsolationFunction · 0.92
writeRuntimeConfigFunction · 0.85
ErrorMethod · 0.80