matcher
v1.0.0
github.com/redforks/testing/matcher
Documentation
pkg.go.dev ↗Package matcher contains extended Matchers for gomega
Functions
Panics
func Panics(expected interface{}) types.GomegaMatcher
Panics return a gomega matcher, the actual value is a function without any argument and returns nothing. Panics() expect function panics with expected value.
Compare the panic value likes gomega.Equal(), also accept gomega Matcher interface.
PanicsWithSubstring
func PanicsWithSubstring(substr string) types.GomegaMatcher
PanicsWithSubstring returns a gomega matcher, like Panics() but matches substring of err.Error().
Save
func Save(ptr interface{}) types.GomegaMatcher