mock_application

package
v0.0.0-...-2e8993e Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_application is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIProduct

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

MockIProduct is a mock of IProduct interface.

func NewMockIProduct

func NewMockIProduct(ctrl *gomock.Controller) *MockIProduct

NewMockIProduct creates a new mock instance.

func (*MockIProduct) Disable

func (m *MockIProduct) Disable() error

Disable mocks base method.

func (*MockIProduct) EXPECT

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

func (*MockIProduct) Enable

func (m *MockIProduct) Enable() error

Enable mocks base method.

func (*MockIProduct) GetID

func (m *MockIProduct) GetID() string

GetID mocks base method.

func (*MockIProduct) GetName

func (m *MockIProduct) GetName() string

GetName mocks base method.

func (*MockIProduct) GetPrice

func (m *MockIProduct) GetPrice() float64

GetPrice mocks base method.

func (*MockIProduct) GetStatus

func (m *MockIProduct) GetStatus() string

GetStatus mocks base method.

func (*MockIProduct) IsValid

func (m *MockIProduct) IsValid() (bool, error)

IsValid mocks base method.

type MockIProductMockRecorder

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

MockIProductMockRecorder is the mock recorder for MockIProduct.

func (*MockIProductMockRecorder) Disable

func (mr *MockIProductMockRecorder) Disable() *gomock.Call

Disable indicates an expected call of Disable.

func (*MockIProductMockRecorder) Enable

func (mr *MockIProductMockRecorder) Enable() *gomock.Call

Enable indicates an expected call of Enable.

func (*MockIProductMockRecorder) GetID

func (mr *MockIProductMockRecorder) GetID() *gomock.Call

GetID indicates an expected call of GetID.

func (*MockIProductMockRecorder) GetName

func (mr *MockIProductMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockIProductMockRecorder) GetPrice

func (mr *MockIProductMockRecorder) GetPrice() *gomock.Call

GetPrice indicates an expected call of GetPrice.

func (*MockIProductMockRecorder) GetStatus

func (mr *MockIProductMockRecorder) GetStatus() *gomock.Call

GetStatus indicates an expected call of GetStatus.

func (*MockIProductMockRecorder) IsValid

func (mr *MockIProductMockRecorder) IsValid() *gomock.Call

IsValid indicates an expected call of IsValid.

type MockIProductPersistence

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

MockIProductPersistence is a mock of IProductPersistence interface.

func NewMockIProductPersistence

func NewMockIProductPersistence(ctrl *gomock.Controller) *MockIProductPersistence

NewMockIProductPersistence creates a new mock instance.

func (*MockIProductPersistence) EXPECT

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

func (*MockIProductPersistence) Get

Get mocks base method.

func (*MockIProductPersistence) Save

Save mocks base method.

type MockIProductPersistenceMockRecorder

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

MockIProductPersistenceMockRecorder is the mock recorder for MockIProductPersistence.

func (*MockIProductPersistenceMockRecorder) Get

func (mr *MockIProductPersistenceMockRecorder) Get(id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockIProductPersistenceMockRecorder) Save

func (mr *MockIProductPersistenceMockRecorder) Save(product interface{}) *gomock.Call

Save indicates an expected call of Save.

type MockIProductReader

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

MockIProductReader is a mock of IProductReader interface.

func NewMockIProductReader

func NewMockIProductReader(ctrl *gomock.Controller) *MockIProductReader

NewMockIProductReader creates a new mock instance.

func (*MockIProductReader) EXPECT

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

func (*MockIProductReader) Get

Get mocks base method.

type MockIProductReaderMockRecorder

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

MockIProductReaderMockRecorder is the mock recorder for MockIProductReader.

func (*MockIProductReaderMockRecorder) Get

func (mr *MockIProductReaderMockRecorder) Get(id interface{}) *gomock.Call

Get indicates an expected call of Get.

type MockIProductService

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

MockIProductService is a mock of IProductService interface.

func NewMockIProductService

func NewMockIProductService(ctrl *gomock.Controller) *MockIProductService

NewMockIProductService creates a new mock instance.

func (*MockIProductService) Create

func (m *MockIProductService) Create(name string, price float64) (application.IProduct, error)

Create mocks base method.

func (*MockIProductService) Disable

Disable mocks base method.

func (*MockIProductService) EXPECT

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

func (*MockIProductService) Enable

Enabled mocks base method.

func (*MockIProductService) Get

Get mocks base method.

type MockIProductServiceMockRecorder

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

MockIProductServiceMockRecorder is the mock recorder for MockIProductService.

func (*MockIProductServiceMockRecorder) Create

func (mr *MockIProductServiceMockRecorder) Create(name, price interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockIProductServiceMockRecorder) Disable

func (mr *MockIProductServiceMockRecorder) Disable(product interface{}) *gomock.Call

Disable indicates an expected call of Disable.

func (*MockIProductServiceMockRecorder) Enable

func (mr *MockIProductServiceMockRecorder) Enable(product interface{}) *gomock.Call

Enabled indicates an expected call of Enabled.

func (*MockIProductServiceMockRecorder) Get

func (mr *MockIProductServiceMockRecorder) Get(id interface{}) *gomock.Call

Get indicates an expected call of Get.

type MockIProductWriter

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

MockIProductWriter is a mock of IProductWriter interface.

func NewMockIProductWriter

func NewMockIProductWriter(ctrl *gomock.Controller) *MockIProductWriter

NewMockIProductWriter creates a new mock instance.

func (*MockIProductWriter) EXPECT

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

func (*MockIProductWriter) Save

Save mocks base method.

type MockIProductWriterMockRecorder

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

MockIProductWriterMockRecorder is the mock recorder for MockIProductWriter.

func (*MockIProductWriterMockRecorder) Save

func (mr *MockIProductWriterMockRecorder) Save(product interface{}) *gomock.Call

Save indicates an expected call of Save.

Jump to

Keyboard shortcuts

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