mock_service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Package mock_service is a generated GoMock package.

Package mock_service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBudget

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

MockBudget is a mock of Budget interface.

func NewMockBudget

func NewMockBudget(ctrl *gomock.Controller) *MockBudget

NewMockBudget creates a new mock instance.

func (*MockBudget) EXPECT

func (m *MockBudget) EXPECT() *MockBudgetMockRecorder

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

func (*MockBudget) GetBaseDailyLimit

func (m *MockBudget) GetBaseDailyLimit() int

GetBaseDailyLimit mocks base method.

func (*MockBudget) GetDailyLimitByName

func (m *MockBudget) GetDailyLimitByName(name string) int

GetDailyLimitByName mocks base method.

type MockBudgetMockRecorder

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

MockBudgetMockRecorder is the mock recorder for MockBudget.

func (*MockBudgetMockRecorder) GetBaseDailyLimit

func (mr *MockBudgetMockRecorder) GetBaseDailyLimit() *gomock.Call

GetBaseDailyLimit indicates an expected call of GetBaseDailyLimit.

func (*MockBudgetMockRecorder) GetDailyLimitByName

func (mr *MockBudgetMockRecorder) GetDailyLimitByName(name interface{}) *gomock.Call

GetDailyLimitByName indicates an expected call of GetDailyLimitByName.

type MockCategory

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

MockCategory is a mock of Category interface.

func NewMockCategory

func NewMockCategory(ctrl *gomock.Controller) *MockCategory

NewMockCategory creates a new mock instance.

func (*MockCategory) EXPECT

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

func (*MockCategory) GetAll

func (m *MockCategory) GetAll() []*model.Category

GetAll mocks base method.

func (*MockCategory) GetByName

func (m *MockCategory) GetByName(name string) *model.Category

GetByName mocks base method.

type MockCategoryMockRecorder

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

MockCategoryMockRecorder is the mock recorder for MockCategory.

func (*MockCategoryMockRecorder) GetAll

func (mr *MockCategoryMockRecorder) GetAll() *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockCategoryMockRecorder) GetByName

func (mr *MockCategoryMockRecorder) GetByName(name interface{}) *gomock.Call

GetByName indicates an expected call of GetByName.

type MockExpense

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

MockExpense is a mock of Expense interface.

func NewMockExpense

func NewMockExpense(ctrl *gomock.Controller) *MockExpense

NewMockExpense creates a new mock instance.

func (*MockExpense) AddExpense

func (m *MockExpense) AddExpense(rawMessage string) (*model.Expense, error)

AddExpense mocks base method.

func (*MockExpense) DeleteByID

func (m *MockExpense) DeleteByID(id int) error

DeleteByID mocks base method.

func (*MockExpense) EXPECT

func (m *MockExpense) EXPECT() *MockExpenseMockRecorder

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

func (*MockExpense) GetAllByPeriod

func (m *MockExpense) GetAllByPeriod(period times.Period) int

GetAllByPeriod mocks base method.

func (*MockExpense) GetBaseByPeriod

func (m *MockExpense) GetBaseByPeriod(period times.Period) int

GetBaseByPeriod mocks base method.

func (*MockExpense) GetLastExpenses

func (m *MockExpense) GetLastExpenses() ([]*model.Expense, error)

GetLastExpenses mocks base method.

type MockExpenseMockRecorder

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

MockExpenseMockRecorder is the mock recorder for MockExpense.

func (*MockExpenseMockRecorder) AddExpense

func (mr *MockExpenseMockRecorder) AddExpense(rawMessage interface{}) *gomock.Call

AddExpense indicates an expected call of AddExpense.

func (*MockExpenseMockRecorder) DeleteByID

func (mr *MockExpenseMockRecorder) DeleteByID(id interface{}) *gomock.Call

DeleteByID indicates an expected call of DeleteByID.

func (*MockExpenseMockRecorder) GetAllByPeriod

func (mr *MockExpenseMockRecorder) GetAllByPeriod(period interface{}) *gomock.Call

GetAllByPeriod indicates an expected call of GetAllByPeriod.

func (*MockExpenseMockRecorder) GetBaseByPeriod

func (mr *MockExpenseMockRecorder) GetBaseByPeriod(period interface{}) *gomock.Call

GetBaseByPeriod indicates an expected call of GetBaseByPeriod.

func (*MockExpenseMockRecorder) GetLastExpenses

func (mr *MockExpenseMockRecorder) GetLastExpenses() *gomock.Call

GetLastExpenses indicates an expected call of GetLastExpenses.

Jump to

Keyboard shortcuts

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