mock

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func New

func New(expectations *[]Expectation) *Engine

func (*Engine) Batch

func (e *Engine) Batch(context.Context, interface{}, interface{}) error

func (*Engine) Connect

func (e *Engine) Connect() error

func (*Engine) Disconnect

func (e *Engine) Disconnect() error

func (*Engine) Do

func (e *Engine) Do(_ context.Context, payload interface{}, v interface{}) error

func (*Engine) Name

func (e *Engine) Name() string

type Expectation

type Expectation struct {
	Query   builder.Query
	Want    interface{}
	WantErr error
	Success bool
}

type Mock

type Mock struct {
	Expectations *[]Expectation
}

func (*Mock) Ensure

func (m *Mock) Ensure(t *testing.T)

type Query

type Query interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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