mock

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCSVUsecase

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

MockCSVUsecase is a mock of CSVUsecase interface.

func NewMockCSVUsecase

func NewMockCSVUsecase(ctrl *gomock.Controller) *MockCSVUsecase

NewMockCSVUsecase creates a new mock instance.

func (*MockCSVUsecase) Dump

func (m *MockCSVUsecase) Dump(csvFilePath string, table *model.Table) error

Dump mocks base method.

func (*MockCSVUsecase) EXPECT

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

func (*MockCSVUsecase) List

func (m *MockCSVUsecase) List(csvFilePath string) (*model.Table, error)

List mocks base method.

type MockCSVUsecaseDumpCall

type MockCSVUsecaseDumpCall struct {
	*gomock.Call
}

MockCSVUsecaseDumpCall wrap *gomock.Call

func (*MockCSVUsecaseDumpCall) Do

Do rewrite *gomock.Call.Do

func (*MockCSVUsecaseDumpCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCSVUsecaseDumpCall) Return

Return rewrite *gomock.Call.Return

type MockCSVUsecaseListCall

type MockCSVUsecaseListCall struct {
	*gomock.Call
}

MockCSVUsecaseListCall wrap *gomock.Call

func (*MockCSVUsecaseListCall) Do

Do rewrite *gomock.Call.Do

func (*MockCSVUsecaseListCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCSVUsecaseListCall) Return

Return rewrite *gomock.Call.Return

type MockCSVUsecaseMockRecorder

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

MockCSVUsecaseMockRecorder is the mock recorder for MockCSVUsecase.

func (*MockCSVUsecaseMockRecorder) Dump

func (mr *MockCSVUsecaseMockRecorder) Dump(csvFilePath, table any) *MockCSVUsecaseDumpCall

Dump indicates an expected call of Dump.

func (*MockCSVUsecaseMockRecorder) List

func (mr *MockCSVUsecaseMockRecorder) List(csvFilePath any) *MockCSVUsecaseListCall

List indicates an expected call of List.

type MockDatabaseUsecase

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

MockDatabaseUsecase is a mock of DatabaseUsecase interface.

func NewMockDatabaseUsecase

func NewMockDatabaseUsecase(ctrl *gomock.Controller) *MockDatabaseUsecase

NewMockDatabaseUsecase creates a new mock instance.

func (*MockDatabaseUsecase) CreateTable

func (m *MockDatabaseUsecase) CreateTable(ctx context.Context, t *model.Table) error

CreateTable mocks base method.

func (*MockDatabaseUsecase) EXPECT

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

func (*MockDatabaseUsecase) Exec

func (m *MockDatabaseUsecase) Exec(ctx context.Context, statement string) (int64, error)

Exec mocks base method.

func (*MockDatabaseUsecase) ExecSQL

func (m *MockDatabaseUsecase) ExecSQL(ctx context.Context, statement string) (*model.Table, int64, error)

ExecSQL mocks base method.

func (*MockDatabaseUsecase) Header

func (m *MockDatabaseUsecase) Header(ctx context.Context, tableName string) (*model.Table, error)

Header mocks base method.

func (*MockDatabaseUsecase) Insert

func (m *MockDatabaseUsecase) Insert(ctx context.Context, t *model.Table) error

Insert mocks base method.

func (*MockDatabaseUsecase) List

func (m *MockDatabaseUsecase) List(ctx context.Context, tableName string) (*model.Table, error)

List mocks base method.

func (*MockDatabaseUsecase) Query

func (m *MockDatabaseUsecase) Query(ctx context.Context, query string) (*model.Table, error)

Query mocks base method.

func (*MockDatabaseUsecase) TablesName

func (m *MockDatabaseUsecase) TablesName(ctx context.Context) ([]*model.Table, error)

TablesName mocks base method.

type MockDatabaseUsecaseCreateTableCall

type MockDatabaseUsecaseCreateTableCall struct {
	*gomock.Call
}

MockDatabaseUsecaseCreateTableCall wrap *gomock.Call

func (*MockDatabaseUsecaseCreateTableCall) Do

Do rewrite *gomock.Call.Do

func (*MockDatabaseUsecaseCreateTableCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDatabaseUsecaseCreateTableCall) Return

Return rewrite *gomock.Call.Return

type MockDatabaseUsecaseExecCall

type MockDatabaseUsecaseExecCall struct {
	*gomock.Call
}

MockDatabaseUsecaseExecCall wrap *gomock.Call

func (*MockDatabaseUsecaseExecCall) Do

Do rewrite *gomock.Call.Do

func (*MockDatabaseUsecaseExecCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDatabaseUsecaseExecCall) Return

Return rewrite *gomock.Call.Return

type MockDatabaseUsecaseExecSQLCall

type MockDatabaseUsecaseExecSQLCall struct {
	*gomock.Call
}

MockDatabaseUsecaseExecSQLCall wrap *gomock.Call

func (*MockDatabaseUsecaseExecSQLCall) Do

Do rewrite *gomock.Call.Do

func (*MockDatabaseUsecaseExecSQLCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDatabaseUsecaseExecSQLCall) Return

Return rewrite *gomock.Call.Return

type MockDatabaseUsecaseHeaderCall

type MockDatabaseUsecaseHeaderCall struct {
	*gomock.Call
}

MockDatabaseUsecaseHeaderCall wrap *gomock.Call

func (*MockDatabaseUsecaseHeaderCall) Do

Do rewrite *gomock.Call.Do

func (*MockDatabaseUsecaseHeaderCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDatabaseUsecaseHeaderCall) Return

Return rewrite *gomock.Call.Return

type MockDatabaseUsecaseInsertCall

type MockDatabaseUsecaseInsertCall struct {
	*gomock.Call
}

MockDatabaseUsecaseInsertCall wrap *gomock.Call

func (*MockDatabaseUsecaseInsertCall) Do

Do rewrite *gomock.Call.Do

func (*MockDatabaseUsecaseInsertCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDatabaseUsecaseInsertCall) Return

Return rewrite *gomock.Call.Return

type MockDatabaseUsecaseListCall

type MockDatabaseUsecaseListCall struct {
	*gomock.Call
}

MockDatabaseUsecaseListCall wrap *gomock.Call

func (*MockDatabaseUsecaseListCall) Do

Do rewrite *gomock.Call.Do

func (*MockDatabaseUsecaseListCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDatabaseUsecaseListCall) Return

Return rewrite *gomock.Call.Return

type MockDatabaseUsecaseMockRecorder

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

MockDatabaseUsecaseMockRecorder is the mock recorder for MockDatabaseUsecase.

func (*MockDatabaseUsecaseMockRecorder) CreateTable

CreateTable indicates an expected call of CreateTable.

func (*MockDatabaseUsecaseMockRecorder) Exec

Exec indicates an expected call of Exec.

func (*MockDatabaseUsecaseMockRecorder) ExecSQL

ExecSQL indicates an expected call of ExecSQL.

func (*MockDatabaseUsecaseMockRecorder) Header

Header indicates an expected call of Header.

func (*MockDatabaseUsecaseMockRecorder) Insert

Insert indicates an expected call of Insert.

func (*MockDatabaseUsecaseMockRecorder) List

List indicates an expected call of List.

func (*MockDatabaseUsecaseMockRecorder) Query

Query indicates an expected call of Query.

func (*MockDatabaseUsecaseMockRecorder) TablesName

TablesName indicates an expected call of TablesName.

type MockDatabaseUsecaseQueryCall

type MockDatabaseUsecaseQueryCall struct {
	*gomock.Call
}

MockDatabaseUsecaseQueryCall wrap *gomock.Call

func (*MockDatabaseUsecaseQueryCall) Do

Do rewrite *gomock.Call.Do

func (*MockDatabaseUsecaseQueryCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDatabaseUsecaseQueryCall) Return

Return rewrite *gomock.Call.Return

type MockDatabaseUsecaseTablesNameCall

type MockDatabaseUsecaseTablesNameCall struct {
	*gomock.Call
}

MockDatabaseUsecaseTablesNameCall wrap *gomock.Call

func (*MockDatabaseUsecaseTablesNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockDatabaseUsecaseTablesNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDatabaseUsecaseTablesNameCall) Return

Return rewrite *gomock.Call.Return

type MockExcelUsecase

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

MockExcelUsecase is a mock of ExcelUsecase interface.

func NewMockExcelUsecase

func NewMockExcelUsecase(ctrl *gomock.Controller) *MockExcelUsecase

NewMockExcelUsecase creates a new mock instance.

func (*MockExcelUsecase) Dump

func (m *MockExcelUsecase) Dump(excelFilePath string, table *model.Table) error

Dump mocks base method.

func (*MockExcelUsecase) EXPECT

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

func (*MockExcelUsecase) List

func (m *MockExcelUsecase) List(excelFilePath, sheetName string) (*model.Table, error)

List mocks base method.

type MockExcelUsecaseDumpCall

type MockExcelUsecaseDumpCall struct {
	*gomock.Call
}

MockExcelUsecaseDumpCall wrap *gomock.Call

func (*MockExcelUsecaseDumpCall) Do

Do rewrite *gomock.Call.Do

func (*MockExcelUsecaseDumpCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExcelUsecaseDumpCall) Return

Return rewrite *gomock.Call.Return

type MockExcelUsecaseListCall

type MockExcelUsecaseListCall struct {
	*gomock.Call
}

MockExcelUsecaseListCall wrap *gomock.Call

func (*MockExcelUsecaseListCall) Do

Do rewrite *gomock.Call.Do

func (*MockExcelUsecaseListCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExcelUsecaseListCall) Return

Return rewrite *gomock.Call.Return

type MockExcelUsecaseMockRecorder

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

MockExcelUsecaseMockRecorder is the mock recorder for MockExcelUsecase.

func (*MockExcelUsecaseMockRecorder) Dump

func (mr *MockExcelUsecaseMockRecorder) Dump(excelFilePath, table any) *MockExcelUsecaseDumpCall

Dump indicates an expected call of Dump.

func (*MockExcelUsecaseMockRecorder) List

func (mr *MockExcelUsecaseMockRecorder) List(excelFilePath, sheetName any) *MockExcelUsecaseListCall

List indicates an expected call of List.

type MockHistoryUsecase

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

MockHistoryUsecase is a mock of HistoryUsecase interface.

func NewMockHistoryUsecase

func NewMockHistoryUsecase(ctrl *gomock.Controller) *MockHistoryUsecase

NewMockHistoryUsecase creates a new mock instance.

func (*MockHistoryUsecase) Create

func (m *MockHistoryUsecase) Create(ctx context.Context, history model.History) error

Create mocks base method.

func (*MockHistoryUsecase) CreateTable

func (m *MockHistoryUsecase) CreateTable(ctx context.Context) error

CreateTable mocks base method.

func (*MockHistoryUsecase) EXPECT

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

func (*MockHistoryUsecase) List

List mocks base method.

type MockHistoryUsecaseCreateCall

type MockHistoryUsecaseCreateCall struct {
	*gomock.Call
}

MockHistoryUsecaseCreateCall wrap *gomock.Call

func (*MockHistoryUsecaseCreateCall) Do

Do rewrite *gomock.Call.Do

func (*MockHistoryUsecaseCreateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHistoryUsecaseCreateCall) Return

Return rewrite *gomock.Call.Return

type MockHistoryUsecaseCreateTableCall

type MockHistoryUsecaseCreateTableCall struct {
	*gomock.Call
}

MockHistoryUsecaseCreateTableCall wrap *gomock.Call

func (*MockHistoryUsecaseCreateTableCall) Do

Do rewrite *gomock.Call.Do

func (*MockHistoryUsecaseCreateTableCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHistoryUsecaseCreateTableCall) Return

Return rewrite *gomock.Call.Return

type MockHistoryUsecaseListCall

type MockHistoryUsecaseListCall struct {
	*gomock.Call
}

MockHistoryUsecaseListCall wrap *gomock.Call

func (*MockHistoryUsecaseListCall) Do

Do rewrite *gomock.Call.Do

func (*MockHistoryUsecaseListCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHistoryUsecaseListCall) Return

Return rewrite *gomock.Call.Return

type MockHistoryUsecaseMockRecorder

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

MockHistoryUsecaseMockRecorder is the mock recorder for MockHistoryUsecase.

func (*MockHistoryUsecaseMockRecorder) Create

Create indicates an expected call of Create.

func (*MockHistoryUsecaseMockRecorder) CreateTable

CreateTable indicates an expected call of CreateTable.

func (*MockHistoryUsecaseMockRecorder) List

List indicates an expected call of List.

type MockJSONUsecase

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

MockJSONUsecase is a mock of JSONUsecase interface.

func NewMockJSONUsecase

func NewMockJSONUsecase(ctrl *gomock.Controller) *MockJSONUsecase

NewMockJSONUsecase creates a new mock instance.

func (*MockJSONUsecase) Dump

func (m *MockJSONUsecase) Dump(jsonFilePath string, table *model.Table) error

Dump mocks base method.

func (*MockJSONUsecase) EXPECT

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

func (*MockJSONUsecase) List

func (m *MockJSONUsecase) List(jsonFilePath string) (*model.Table, error)

List mocks base method.

type MockJSONUsecaseDumpCall

type MockJSONUsecaseDumpCall struct {
	*gomock.Call
}

MockJSONUsecaseDumpCall wrap *gomock.Call

func (*MockJSONUsecaseDumpCall) Do

Do rewrite *gomock.Call.Do

func (*MockJSONUsecaseDumpCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockJSONUsecaseDumpCall) Return

Return rewrite *gomock.Call.Return

type MockJSONUsecaseListCall

type MockJSONUsecaseListCall struct {
	*gomock.Call
}

MockJSONUsecaseListCall wrap *gomock.Call

func (*MockJSONUsecaseListCall) Do

Do rewrite *gomock.Call.Do

func (*MockJSONUsecaseListCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockJSONUsecaseListCall) Return

Return rewrite *gomock.Call.Return

type MockJSONUsecaseMockRecorder

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

MockJSONUsecaseMockRecorder is the mock recorder for MockJSONUsecase.

func (*MockJSONUsecaseMockRecorder) Dump

func (mr *MockJSONUsecaseMockRecorder) Dump(jsonFilePath, table any) *MockJSONUsecaseDumpCall

Dump indicates an expected call of Dump.

func (*MockJSONUsecaseMockRecorder) List

List indicates an expected call of List.

type MockLTSVUsecase

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

MockLTSVUsecase is a mock of LTSVUsecase interface.

func NewMockLTSVUsecase

func NewMockLTSVUsecase(ctrl *gomock.Controller) *MockLTSVUsecase

NewMockLTSVUsecase creates a new mock instance.

func (*MockLTSVUsecase) Dump

func (m *MockLTSVUsecase) Dump(ltsvFilePath string, table *model.Table) error

Dump mocks base method.

func (*MockLTSVUsecase) EXPECT

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

func (*MockLTSVUsecase) List

func (m *MockLTSVUsecase) List(ltsvFilePath string) (*model.Table, error)

List mocks base method.

type MockLTSVUsecaseDumpCall

type MockLTSVUsecaseDumpCall struct {
	*gomock.Call
}

MockLTSVUsecaseDumpCall wrap *gomock.Call

func (*MockLTSVUsecaseDumpCall) Do

Do rewrite *gomock.Call.Do

func (*MockLTSVUsecaseDumpCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLTSVUsecaseDumpCall) Return

Return rewrite *gomock.Call.Return

type MockLTSVUsecaseListCall

type MockLTSVUsecaseListCall struct {
	*gomock.Call
}

MockLTSVUsecaseListCall wrap *gomock.Call

func (*MockLTSVUsecaseListCall) Do

Do rewrite *gomock.Call.Do

func (*MockLTSVUsecaseListCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLTSVUsecaseListCall) Return

Return rewrite *gomock.Call.Return

type MockLTSVUsecaseMockRecorder

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

MockLTSVUsecaseMockRecorder is the mock recorder for MockLTSVUsecase.

func (*MockLTSVUsecaseMockRecorder) Dump

func (mr *MockLTSVUsecaseMockRecorder) Dump(ltsvFilePath, table any) *MockLTSVUsecaseDumpCall

Dump indicates an expected call of Dump.

func (*MockLTSVUsecaseMockRecorder) List

List indicates an expected call of List.

type MockTSVUsecase

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

MockTSVUsecase is a mock of TSVUsecase interface.

func NewMockTSVUsecase

func NewMockTSVUsecase(ctrl *gomock.Controller) *MockTSVUsecase

NewMockTSVUsecase creates a new mock instance.

func (*MockTSVUsecase) Dump

func (m *MockTSVUsecase) Dump(tsvFilePath string, table *model.Table) error

Dump mocks base method.

func (*MockTSVUsecase) EXPECT

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

func (*MockTSVUsecase) List

func (m *MockTSVUsecase) List(tsvFilePath string) (*model.Table, error)

List mocks base method.

type MockTSVUsecaseDumpCall

type MockTSVUsecaseDumpCall struct {
	*gomock.Call
}

MockTSVUsecaseDumpCall wrap *gomock.Call

func (*MockTSVUsecaseDumpCall) Do

Do rewrite *gomock.Call.Do

func (*MockTSVUsecaseDumpCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTSVUsecaseDumpCall) Return

Return rewrite *gomock.Call.Return

type MockTSVUsecaseListCall

type MockTSVUsecaseListCall struct {
	*gomock.Call
}

MockTSVUsecaseListCall wrap *gomock.Call

func (*MockTSVUsecaseListCall) Do

Do rewrite *gomock.Call.Do

func (*MockTSVUsecaseListCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTSVUsecaseListCall) Return

Return rewrite *gomock.Call.Return

type MockTSVUsecaseMockRecorder

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

MockTSVUsecaseMockRecorder is the mock recorder for MockTSVUsecase.

func (*MockTSVUsecaseMockRecorder) Dump

func (mr *MockTSVUsecaseMockRecorder) Dump(tsvFilePath, table any) *MockTSVUsecaseDumpCall

Dump indicates an expected call of Dump.

func (*MockTSVUsecaseMockRecorder) List

func (mr *MockTSVUsecaseMockRecorder) List(tsvFilePath any) *MockTSVUsecaseListCall

List indicates an expected call of List.

Jump to

Keyboard shortcuts

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