goext_test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchError

func MatchError(expected *goext.Error) types.GomegaMatcher

Types

type MatchErrorMatcher

type MatchErrorMatcher struct {
	Expected *goext.Error
}

MatchErrorMatcher matches goext.Error

example: Expect(myFunction(myParams)).To(goext.MatchError(goext.NewErrorInternalServerError(myModule.ErrMyError)))

func (*MatchErrorMatcher) FailureMessage

func (matcher *MatchErrorMatcher) FailureMessage(actual interface{}) (message string)

func (*MatchErrorMatcher) Match

func (matcher *MatchErrorMatcher) Match(actual interface{}) (bool, error)

func (*MatchErrorMatcher) NegatedFailureMessage

func (matcher *MatchErrorMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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