mocks

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticSearch

type ElasticSearch struct {
	mock.Mock
}

ElasticSearch is an autogenerated mock type for the ElasticSearch type

func NewElasticSearch

func NewElasticSearch(t mockConstructorTestingTNewElasticSearch) *ElasticSearch

NewElasticSearch creates a new instance of ElasticSearch. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ElasticSearch) EXPECT

func (_m *ElasticSearch) EXPECT() *ElasticSearch_Expecter

func (*ElasticSearch) Search

func (_m *ElasticSearch) Search(ctx context.Context, query interface{}, result interface{}) error

Search provides a mock function with given fields: ctx, query, result

type ElasticSearch_Expecter

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

func (*ElasticSearch_Expecter) Search

func (_e *ElasticSearch_Expecter) Search(ctx interface{}, query interface{}, result interface{}) *ElasticSearch_Search_Call

Search is a helper method to define mock.On call

  • ctx context.Context
  • query interface{}
  • result interface{}

type ElasticSearch_Search_Call

type ElasticSearch_Search_Call struct {
	*mock.Call
}

ElasticSearch_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'

func (*ElasticSearch_Search_Call) Return

func (*ElasticSearch_Search_Call) Run

func (_c *ElasticSearch_Search_Call) Run(run func(ctx context.Context, query interface{}, result interface{})) *ElasticSearch_Search_Call

func (*ElasticSearch_Search_Call) RunAndReturn

func (_c *ElasticSearch_Search_Call) RunAndReturn(run func(context.Context, interface{}, interface{}) error) *ElasticSearch_Search_Call

Jump to

Keyboard shortcuts

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