mocks

package
v0.0.0-...-34f7822 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Get

func (_m *Client) Get(_a0 string) (*gatherer.Response, error)

Get provides a mock function with given fields: _a0

func (*Client) Query

func (_m *Client) Query(_a0 string, _a1 string) (*gatherer.Response, error)

Query provides a mock function with given fields: _a0, _a1

type ClientHelper

type ClientHelper struct {
	mock.Mock
}

ClientHelper is an autogenerated mock type for the ClientHelper type

func (*ClientHelper) Connect

func (_m *ClientHelper) Connect() error

Connect provides a mock function with given fields:

func (*ClientHelper) Database

func (_m *ClientHelper) Database(_a0 string) common.DatabaseHelper

Database provides a mock function with given fields: _a0

func (*ClientHelper) Ping

func (_m *ClientHelper) Ping() error

Ping provides a mock function with given fields:

func (*ClientHelper) StartSession

func (_m *ClientHelper) StartSession() (mongo.Session, error)

StartSession provides a mock function with given fields:

type CollectionHelper

type CollectionHelper struct {
	mock.Mock
}

CollectionHelper is an autogenerated mock type for the CollectionHelper type

func (*CollectionHelper) InsertOne

func (_m *CollectionHelper) InsertOne(_a0 context.Context, _a1 interface{}) (interface{}, error)

InsertOne provides a mock function with given fields: _a0, _a1

type Controller

type Controller struct {
	mock.Mock
}

Controller is an autogenerated mock type for the Controller type

func (*Controller) GatherAndSaveURL

func (_m *Controller) GatherAndSaveURL(_a0 string) error

GatherAndSaveURL provides a mock function with given fields: _a0

type DatabaseHelper

type DatabaseHelper struct {
	mock.Mock
}

DatabaseHelper is an autogenerated mock type for the DatabaseHelper type

func (*DatabaseHelper) Client

func (_m *DatabaseHelper) Client() common.ClientHelper

Client provides a mock function with given fields:

func (*DatabaseHelper) Collection

func (_m *DatabaseHelper) Collection(name string) common.CollectionHelper

Collection provides a mock function with given fields: name

type GenericRepository

type GenericRepository struct {
	mock.Mock
}

GenericRepository is an autogenerated mock type for the GenericRepository type

func (*GenericRepository) Create

func (_m *GenericRepository) Create(_a0 context.Context, _a1 interface{}) (interface{}, error)

Create provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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