mocks

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallDatabase

type CallDatabase struct {
	mock.Mock
}

CallDatabase is an autogenerated mock type for the CallDatabase type

func (*CallDatabase) Find

func (_m *CallDatabase) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) ([]models.Call, error)

Find provides a mock function with given fields: _a0, _a1, _a2

func (*CallDatabase) FindOne

func (_m *CallDatabase) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) (*models.Call, error)

FindOne provides a mock function with given fields: _a0, _a1, _a2

type CivilianDatabase

type CivilianDatabase struct {
	mock.Mock
}

CivilianDatabase is an autogenerated mock type for the CivilianDatabase type

func (*CivilianDatabase) Find

func (_m *CivilianDatabase) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) ([]models.Civilian, error)

Find provides a mock function with given fields: _a0, _a1, _a2

func (*CivilianDatabase) FindOne

func (_m *CivilianDatabase) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) (*models.Civilian, error)

FindOne provides a mock function with given fields: _a0, _a1, _a2

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) databases.DatabaseHelper

Database provides a mock function with given fields: _a0

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) Find

func (_m *CollectionHelper) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) databases.CursorHelper

Find provides a mock function with given fields: _a0, _a1, _a2

func (*CollectionHelper) FindOne

func (_m *CollectionHelper) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) databases.SingleResultHelper

FindOne provides a mock function with given fields: _a0, _a1, _a2

type CommunityDatabase

type CommunityDatabase struct {
	mock.Mock
}

CommunityDatabase is an autogenerated mock type for the CommunityDatabase type

func (*CommunityDatabase) Find

func (_m *CommunityDatabase) Find(ctx context.Context, filter interface{}) ([]models.Community, error)

Find provides a mock function with given fields: ctx, filter

func (*CommunityDatabase) FindOne

func (_m *CommunityDatabase) FindOne(ctx context.Context, filter interface{}) (*models.Community, error)

FindOne provides a mock function with given fields: ctx, filter

type CursorHelper

type CursorHelper struct {
	mock.Mock
}

CursorHelper is an autogenerated mock type for the CursorHelper type

func (*CursorHelper) Decode

func (_m *CursorHelper) Decode(v interface{}) error

Decode provides a mock function with given fields: v

type DatabaseHelper

type DatabaseHelper struct {
	mock.Mock
}

DatabaseHelper is an autogenerated mock type for the DatabaseHelper type

func (*DatabaseHelper) Client

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

Client provides a mock function with given fields:

func (*DatabaseHelper) Collection

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

Collection provides a mock function with given fields: name

type EmsDatabase

type EmsDatabase struct {
	mock.Mock
}

EmsDatabase is an autogenerated mock type for the EmsDatabase type

func (*EmsDatabase) Find

func (_m *EmsDatabase) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) ([]models.Ems, error)

Find provides a mock function with given fields: _a0, _a1, _a2

func (*EmsDatabase) FindOne

func (_m *EmsDatabase) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) (*models.Ems, error)

FindOne provides a mock function with given fields: _a0, _a1, _a2

type EmsVehicleDatabase

type EmsVehicleDatabase struct {
	mock.Mock
}

EmsVehicleDatabase is an autogenerated mock type for the EmsVehicleDatabase type

func (*EmsVehicleDatabase) Find

func (_m *EmsVehicleDatabase) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) ([]models.EmsVehicle, error)

Find provides a mock function with given fields: _a0, _a1, _a2

func (*EmsVehicleDatabase) FindOne

func (_m *EmsVehicleDatabase) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) (*models.EmsVehicle, error)

FindOne provides a mock function with given fields: _a0, _a1, _a2

type FirearmDatabase

type FirearmDatabase struct {
	mock.Mock
}

FirearmDatabase is an autogenerated mock type for the FirearmDatabase type

func (*FirearmDatabase) Find

func (_m *FirearmDatabase) Find(ctx context.Context, filter interface{}, opts ...*options.FindOptions) ([]models.Firearm, error)

Find provides a mock function with given fields: ctx, filter, opts

func (*FirearmDatabase) FindOne

func (_m *FirearmDatabase) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) (*models.Firearm, error)

FindOne provides a mock function with given fields: ctx, filter, opts

type LicenseDatabase added in v1.8.0

type LicenseDatabase struct {
	mock.Mock
}

LicenseDatabase is an autogenerated mock type for the LicenseDatabase type

func (*LicenseDatabase) Find added in v1.8.0

func (_m *LicenseDatabase) Find(ctx context.Context, filter interface{}, opts ...*options.FindOptions) ([]models.License, error)

Find provides a mock function with given fields: ctx, filter, opts

func (*LicenseDatabase) FindOne added in v1.8.0

func (_m *LicenseDatabase) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) (*models.License, error)

FindOne provides a mock function with given fields: ctx, filter, opts

type SingleResultHelper

type SingleResultHelper struct {
	mock.Mock
}

SingleResultHelper is an autogenerated mock type for the SingleResultHelper type

func (*SingleResultHelper) Decode

func (_m *SingleResultHelper) Decode(v interface{}) error

Decode provides a mock function with given fields: v

type UserDatabase

type UserDatabase struct {
	mock.Mock
}

UserDatabase is an autogenerated mock type for the UserDatabase type

func (*UserDatabase) Find

func (_m *UserDatabase) Find(ctx context.Context, filter interface{}) ([]models.User, error)

Find provides a mock function with given fields: ctx, filter

func (*UserDatabase) FindOne

func (_m *UserDatabase) FindOne(ctx context.Context, filter interface{}) (*models.User, error)

FindOne provides a mock function with given fields: ctx, filter

type VehicleDatabase

type VehicleDatabase struct {
	mock.Mock
}

VehicleDatabase is an autogenerated mock type for the VehicleDatabase type

func (*VehicleDatabase) Find

func (_m *VehicleDatabase) Find(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOptions) ([]models.Vehicle, error)

Find provides a mock function with given fields: _a0, _a1, _a2

func (*VehicleDatabase) FindOne

func (_m *VehicleDatabase) FindOne(_a0 context.Context, _a1 interface{}, _a2 ...*options.FindOneOptions) (*models.Vehicle, error)

FindOne provides a mock function with given fields: _a0, _a1, _a2

type WarrantDatabase added in v1.8.0

type WarrantDatabase struct {
	mock.Mock
}

WarrantDatabase is an autogenerated mock type for the WarrantDatabase type

func (*WarrantDatabase) Find added in v1.8.0

func (_m *WarrantDatabase) Find(ctx context.Context, filter interface{}, opts ...*options.FindOptions) ([]models.Warrant, error)

Find provides a mock function with given fields: ctx, filter, opts

func (*WarrantDatabase) FindOne added in v1.8.0

func (_m *WarrantDatabase) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) (*models.Warrant, error)

FindOne provides a mock function with given fields: ctx, filter, opts

Jump to

Keyboard shortcuts

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