calls

package
v1.8.12 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallRecord

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

type Calls

type Calls []CallRecord

func (*Calls) GetCalls

func (c *Calls) GetCalls(method, path string) [][]byte

func (*Calls) PrintCalls

func (c *Calls) PrintCalls()

func (*Calls) Register

func (c *Calls) Register(method, path string, request []byte)

func (*Calls) WasCalled

func (c *Calls) WasCalled(method, path string, expectedRequest []byte) bool

func (*Calls) WasCalledRegex

func (c *Calls) WasCalledRegex(methodRegex, pathRegex string, expectedRequest []byte) (bool, error)

Jump to

Keyboard shortcuts

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