mmock

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mmock

type Mmock struct {
	// contains filtered or unexported fields
}

func NewMmock

func NewMmock(mmockUrl string) *Mmock

func (*Mmock) CheckHttpMockWasInvoked

func (m *Mmock) CheckHttpMockWasInvoked(t *testing.T, expectedPath string)

checkHttpMockWasInvoked queries the HTTP API of mmock that returns what mocked endpoints have been called. It will fail the test if the mock does not contain at least one request matching the expectedPath.

func (*Mmock) CheckHttpMockWasNotInvoked

func (m *Mmock) CheckHttpMockWasNotInvoked(t *testing.T, unexpectedPath string)

checkHttpMockWasNotInvoked fails the test if the mock contains any requests matching unexpectedPath

func (*Mmock) ResetMmock

func (m *Mmock) ResetMmock(t *testing.T)

resetMmock resets the mmock storage of invoked endpoints.

Jump to

Keyboard shortcuts

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