Documentation ¶
Overview ¶
Package matcher contains extended Matchers for gomega
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func 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.
func PanicsWithSubstring ¶
func PanicsWithSubstring(substr string) types.GomegaMatcher
PanicsWithSubstring returns a gomega matcher, like Panics() but matches substring of err.Error().
func Save ¶
func Save(ptr interface{}) types.GomegaMatcher
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.