MCPcopy Index your code
hub / github.com/devspace-sh/devspace / ExpectNoError

Function ExpectNoError

e2e/framework/helper.go:40–42  ·  view source on GitHub ↗

ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error.

(err error, explain ...interface{})

Source from the content-addressed store, hash-verified

38
39// ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error.
40func ExpectNoError(err error, explain ...interface{}) {
41 ExpectNoErrorWithOffset(1, err, explain...)
42}
43
44// ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller
45// (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f").

Callers 15

deploy.goFile · 0.92
init.goFile · 0.92
inject.goFile · 0.92
pullsecrets.goFile · 0.92
proxycommands.goFile · 0.92
command.goFile · 0.92
terminal.goFile · 0.92
portforward.goFile · 0.92
imports.goFile · 0.92
localregistry.goFile · 0.92
ssh.goFile · 0.92
render.goFile · 0.92

Calls 1

ExpectNoErrorWithOffsetFunction · 0.85

Tested by

no test coverage detected