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

Function RequiresIsolation

internal/testutils.go:59–63  ·  view source on GitHub ↗

RequiresIsolation will ensure that tests that must be run in an isolated environment are being run with the explicit ENABLE_ISOLATED_TESTS env var. If the env var has not been set, the test will be skipped

(t testing.TB)

Source from the content-addressed store, hash-verified

57// environment are being run with the explicit ENABLE_ISOLATED_TESTS env var.
58// If the env var has not been set, the test will be skipped
59func RequiresIsolation(t testing.TB) {
60 if !isolatedTestsEnabled {
61 t.Skip("skipping test that requires isolation")
62 }
63}

Callers 1

PrepareFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected