mock

package
v0.8.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentCaptor

type ArgumentCaptor[T any] struct {
	// contains filtered or unexported fields
}

func ArgumentCaptorFrom

func ArgumentCaptorFrom[T any](m *mock.Mock, name string) *ArgumentCaptor[T]

func NewArgumentCaptor

func NewArgumentCaptor[T any](m *mock.Mock, name string) *ArgumentCaptor[T]

func (*ArgumentCaptor[T]) Capture

func (c *ArgumentCaptor[T]) Capture(val T)

func (*ArgumentCaptor[T]) Value

func (c *ArgumentCaptor[T]) Value() T

func (*ArgumentCaptor[T]) Values

func (c *ArgumentCaptor[T]) Values() []T

type ArgumentsCaptor

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

func ArgumentsCaptorFrom

func ArgumentsCaptorFrom(m *mock.Mock, name string) *ArgumentsCaptor

func NewArgumentsCaptor

func NewArgumentsCaptor(m *mock.Mock, name string) *ArgumentsCaptor

func (*ArgumentsCaptor) Capture

func (c *ArgumentsCaptor) Capture(args mock.Arguments)

func (*ArgumentsCaptor) Values

func (c *ArgumentsCaptor) Values(call int) mock.Arguments

Jump to

Keyboard shortcuts

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