proxy.golang.org : github.com/thediveo/errxpect : v0.11.0
Package errxpect supplies Gomega with assertions for mult-return value functions for simpler error testing. A typical use of the errxpect package is by importing it into the in the current file's file block for easy reference without needing the package name. Before, Gomega forced you to write assertions where you are only interested in checking the error return value of a multi-return value function: This can now be rewritten in a more concise form as (something which isn't allowed in stock Gomega Expect-ations): ExpectWithError() needs to be slightly phrased differently, due to Golang's language restrictions, but probably even more neat now:
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/thediveo/errxpect@v0.11.0
Published:
Indexed:
- github.com/onsi/ginkgo v1.12.1
- github.com/onsi/gomega v1.10.2