MCPcopy
hub / github.com/loft-sh/devpod / ExpectNoError

Function ExpectNoError

e2e/framework/helper.go:21–23  ·  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

19
20// ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error.
21func ExpectNoError(err error, explain ...interface{}) {
22 ExpectNoErrorWithOffset(1, err, explain...)
23}
24
25// ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller
26// (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f").

Callers 15

integration.goFile · 0.92
proxyprovider.goFile · 0.92
machineprovider.goFile · 0.92
context.goFile · 0.92
ide.goFile · 0.92
ssh.goFile · 0.92
provider.goFile · 0.92
delete.goFile · 0.92
create.goFile · 0.92
docker-wsl.goFile · 0.92
up.goFile · 0.92
podman.goFile · 0.92

Calls 1

ExpectNoErrorWithOffsetFunction · 0.85

Tested by

no test coverage detected