matcher

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL