matchers

package
v0.0.0-...-b93a6bd Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceResponseMatcher

type ServiceResponseMatcher struct {
	ExpectedSuccess bool
	ExpectedResults interface{}
	// contains filtered or unexported fields
}

ServiceResponseMatcher checks that a service response object has the expected success value and results.

func (*ServiceResponseMatcher) FailureMessage

func (sr *ServiceResponseMatcher) FailureMessage(actual interface{}) string

FailureMessage returns the failure message.

func (*ServiceResponseMatcher) Match

func (sr *ServiceResponseMatcher) Match(actual interface{}) (bool, error)

Match returns true if actual matches the expected response.

func (*ServiceResponseMatcher) NegatedFailureMessage

func (sr *ServiceResponseMatcher) NegatedFailureMessage(actual interface{}) string

NegatedFailureMessage returns the negated failure message.

Jump to

Keyboard shortcuts

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