mocks

package
v0.0.0-...-f40e6d9 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_easyalert is a generated GoMock package.

Package mock_easyalert is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAlertRepository

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

MockAlertRepository is a mock of AlertRepository interface

func NewMockAlertRepository

func NewMockAlertRepository(ctrl *gomock.Controller) *MockAlertRepository

NewMockAlertRepository creates a new mock instance

func (*MockAlertRepository) CreateAlert

func (m *MockAlertRepository) CreateAlert(alert easyalert.Alert) (easyalert.Alert, error)

CreateAlert mocks base method

func (*MockAlertRepository) DeleteAlert

func (m *MockAlertRepository) DeleteAlert(alert easyalert.Alert) error

DeleteAlert mocks base method

func (*MockAlertRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAlertRepository) FindAlert

func (m *MockAlertRepository) FindAlert(query string, params ...interface{}) (easyalert.Alert, error)

FindAlert mocks base method

func (*MockAlertRepository) FindAlerts

func (m *MockAlertRepository) FindAlerts(query string, params ...interface{}) ([]easyalert.Alert, error)

FindAlerts mocks base method

func (*MockAlertRepository) UpdateAlert

func (m *MockAlertRepository) UpdateAlert(alert easyalert.Alert) (easyalert.Alert, error)

UpdateAlert mocks base method

type MockAlertRepositoryMockRecorder

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

MockAlertRepositoryMockRecorder is the mock recorder for MockAlertRepository

func (*MockAlertRepositoryMockRecorder) CreateAlert

func (mr *MockAlertRepositoryMockRecorder) CreateAlert(alert interface{}) *gomock.Call

CreateAlert indicates an expected call of CreateAlert

func (*MockAlertRepositoryMockRecorder) DeleteAlert

func (mr *MockAlertRepositoryMockRecorder) DeleteAlert(alert interface{}) *gomock.Call

DeleteAlert indicates an expected call of DeleteAlert

func (*MockAlertRepositoryMockRecorder) FindAlert

func (mr *MockAlertRepositoryMockRecorder) FindAlert(query interface{}, params ...interface{}) *gomock.Call

FindAlert indicates an expected call of FindAlert

func (*MockAlertRepositoryMockRecorder) FindAlerts

func (mr *MockAlertRepositoryMockRecorder) FindAlerts(query interface{}, params ...interface{}) *gomock.Call

FindAlerts indicates an expected call of FindAlerts

func (*MockAlertRepositoryMockRecorder) UpdateAlert

func (mr *MockAlertRepositoryMockRecorder) UpdateAlert(alert interface{}) *gomock.Call

UpdateAlert indicates an expected call of UpdateAlert

type MockUserRepository

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

MockUserRepository is a mock of UserRepository interface

func NewMockUserRepository

func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository

NewMockUserRepository creates a new mock instance

func (*MockUserRepository) CreateUser

func (m *MockUserRepository) CreateUser(user easyalert.User) (easyalert.User, error)

CreateUser mocks base method

func (*MockUserRepository) DeleteUser

func (m *MockUserRepository) DeleteUser(user easyalert.User) error

DeleteUser mocks base method

func (*MockUserRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockUserRepository) FindUser

func (m *MockUserRepository) FindUser(query string, params ...interface{}) (easyalert.User, error)

FindUser mocks base method

func (*MockUserRepository) FindUsers

func (m *MockUserRepository) FindUsers() ([]easyalert.User, error)

FindUsers mocks base method

func (*MockUserRepository) UpdateUser

func (m *MockUserRepository) UpdateUser(user easyalert.User) (easyalert.User, error)

UpdateUser mocks base method

type MockUserRepositoryMockRecorder

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

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository

func (*MockUserRepositoryMockRecorder) CreateUser

func (mr *MockUserRepositoryMockRecorder) CreateUser(user interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser

func (*MockUserRepositoryMockRecorder) DeleteUser

func (mr *MockUserRepositoryMockRecorder) DeleteUser(user interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser

func (*MockUserRepositoryMockRecorder) FindUser

func (mr *MockUserRepositoryMockRecorder) FindUser(query interface{}, params ...interface{}) *gomock.Call

FindUser indicates an expected call of FindUser

func (*MockUserRepositoryMockRecorder) FindUsers

func (mr *MockUserRepositoryMockRecorder) FindUsers() *gomock.Call

FindUsers indicates an expected call of FindUsers

func (*MockUserRepositoryMockRecorder) UpdateUser

func (mr *MockUserRepositoryMockRecorder) UpdateUser(user interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser

Jump to

Keyboard shortcuts

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