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

Function ExpectNoErrorWithOffset

e2e/framework/helper.go:27–29  ·  view source on GitHub ↗

ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f").

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

Source from the content-addressed store, hash-verified

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").
27func ExpectNoErrorWithOffset(offset int, err error, explain ...interface{}) {
28 gomega.ExpectWithOffset(1+offset, err).NotTo(gomega.HaveOccurred(), explain...)
29}

Callers 1

ExpectNoErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected