calls

package
v2.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

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