Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

matcher

v1.0.0
github.com/redforks/testing/matcher

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

4 matches

Top ↑

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

Dependency graph