apitest: github.com/steinfletcher/apitest/mocks Index | Files

package mocks

import "github.com/steinfletcher/apitest/mocks"

Index

Package Files

verifier.go

type MockVerifier Uses

type MockVerifier struct {
    EqualFn      func(t *testing.T, expected, actual interface{}, msgAndArgs ...interface{}) bool
    EqualInvoked bool

    JSONEqFn      func(t *testing.T, expected string, actual string, msgAndArgs ...interface{}) bool
    JSONEqInvoked bool

    FailFn      func(t *testing.T, failureMessage string, msgAndArgs ...interface{}) bool
    FailInvoked bool
}

MockVerifier is a mock of the Verifier interface that is used in tests of apitest

func NewVerifier Uses

func NewVerifier() MockVerifier

func (MockVerifier) Equal Uses

func (m MockVerifier) Equal(t *testing.T, expected, actual interface{}, msgAndArgs ...interface{}) bool

Equal mocks the Equal method of the Verifier

func (MockVerifier) Fail Uses

func (m MockVerifier) Fail(t *testing.T, failureMessage string, msgAndArgs ...interface{}) bool

Fail mocks the Fail method of the Verifier

func (MockVerifier) JSONEq Uses

func (m MockVerifier) JSONEq(t *testing.T, expected string, actual string, msgAndArgs ...interface{}) bool

JSONEq mocks the JSONEq method of the Verifier

Package mocks imports 2 packages (graph). Updated 2019-08-14. Refresh now. Tools for package owners.