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

Function ExpectNoErrorWithOffset

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

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").
46func ExpectNoErrorWithOffset(offset int, err error, explain ...interface{}) {
47 gomega.ExpectWithOffset(1+offset, err).NotTo(gomega.HaveOccurred(), explain...)
48}
49
50// ExpectConsistOf expects actual contains precisely the extra elements. The ordering of the elements does not matter.
51func ExpectConsistOf(actual interface{}, extra interface{}, explain ...interface{}) {

Callers 9

ExpectNoErrorFunction · 0.85
ExpectNamespaceFunction · 0.85
ExpectRemoteFileContentsFunction · 0.85
ExpectLocalCurlContainsFunction · 0.85
ExpectRemoteCurlContainsFunction · 0.85
ExpectRemoteFileNotFoundFunction · 0.85
ExpectLocalFileContentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected