MCPcopy
hub / github.com/opencontainers/runc / ok

Function ok

libcontainer/integration/utils_test.go:79–84  ·  view source on GitHub ↗

ok fails the test if an err is not nil.

(t testing.TB, err error)

Source from the content-addressed store, hash-verified

77
78// ok fails the test if an err is not nil.
79func ok(t testing.TB, err error) {
80 t.Helper()
81 if err != nil {
82 t.Fatalf("unexpected error: %v", err)
83 }
84}
85
86func waitProcess(p *libcontainer.Process, t testing.TB) {
87 t.Helper()

Callers 15

TestIPCPrivateFunction · 0.85
TestIPCHostFunction · 0.85
TestIPCJoinPathFunction · 0.85
testRlimitFunction · 0.85
TestEnterFunction · 0.85
TestProcessEnvFunction · 0.85
TestProcessEmptyCapsFunction · 0.85
TestProcessCapsFunction · 0.85
TestAdditionalGroupsFunction · 0.85
testFreezeFunction · 0.85
TestContainerStateFunction · 0.85
TestPassExtraFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected