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

Function ExpectError

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

ExpectError expects an error happens, otherwise an exception raises

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

Source from the content-addressed store, hash-verified

27
28// ExpectError expects an error happens, otherwise an exception raises
29func ExpectError(err error, explain ...interface{}) {
30 gomega.ExpectWithOffset(1, err).To(gomega.HaveOccurred(), explain...)
31}
32
33// ExpectErrorMatch ExpectMatchError expects an error happens and has a message matching the given string, otherwise an exception raises
34func ExpectErrorMatch(err error, msg string, explain ...interface{}) {

Callers 8

deploy.goFile · 0.92
imports.goFile · 0.92
localregistry.goFile · 0.92
pipelines.goFile · 0.92
sync.goFile · 0.92
hooks.goFile · 0.92
dependencies.goFile · 0.92
config.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected