Documentation ¶
Overview ¶
Package mold is a generated GoMock package.
Package mold is a generated GoMock package.
Package mold is a generated GoMock package.
Package mold is a generated GoMock package.
Package mold is a generated GoMock package.
Index ¶
- type Component
- type Material
- type MaterialRequirement
- type MaterialService
- type MockMaterial
- type MockMaterialMockRecorder
- type MockMaterialService
- type MockMaterialServiceMockRecorder
- type MockProductService
- type MockProductServiceMockRecorder
- type MockRepository
- type MockRepositoryMockRecorder
- type MockService
- type MockServiceMockRecorder
- type Mold
- type Product
- type ProductComponent
- type ProductService
- type Repository
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
func NewComponent ¶
type MaterialRequirement ¶
type MaterialRequirement struct {
// contains filtered or unexported fields
}
func NewMaterialRequirement ¶
func NewMaterialRequirement(name string, description string) *MaterialRequirement
func (*MaterialRequirement) Description ¶
func (m *MaterialRequirement) Description() string
func (*MaterialRequirement) Name ¶
func (m *MaterialRequirement) Name() string
type MaterialService ¶
type MaterialService interface {
GetMaterial(requirements []*MaterialRequirement) (Material, error)
}
type MockMaterial ¶
type MockMaterial struct {
// contains filtered or unexported fields
}
MockMaterial is a mock of Material interface
func NewMockMaterial ¶
func NewMockMaterial(ctrl *gomock.Controller) *MockMaterial
NewMockMaterial creates a new mock instance
func (*MockMaterial) EXPECT ¶
func (m *MockMaterial) EXPECT() *MockMaterialMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMaterial) Parameters ¶
func (m *MockMaterial) Parameters() map[string]string
Parameters mocks base method
type MockMaterialMockRecorder ¶
type MockMaterialMockRecorder struct {
// contains filtered or unexported fields
}
MockMaterialMockRecorder is the mock recorder for MockMaterial
func (*MockMaterialMockRecorder) Parameters ¶
func (mr *MockMaterialMockRecorder) Parameters() *gomock.Call
Parameters indicates an expected call of Parameters
type MockMaterialService ¶
type MockMaterialService struct {
// contains filtered or unexported fields
}
MockMaterialService is a mock of MaterialService interface
func NewMockMaterialService ¶
func NewMockMaterialService(ctrl *gomock.Controller) *MockMaterialService
NewMockMaterialService creates a new mock instance
func (*MockMaterialService) EXPECT ¶
func (m *MockMaterialService) EXPECT() *MockMaterialServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMaterialService) GetMaterial ¶
func (m *MockMaterialService) GetMaterial(requirements []*MaterialRequirement) (Material, error)
GetMaterial mocks base method
type MockMaterialServiceMockRecorder ¶
type MockMaterialServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockMaterialServiceMockRecorder is the mock recorder for MockMaterialService
func (*MockMaterialServiceMockRecorder) GetMaterial ¶
func (mr *MockMaterialServiceMockRecorder) GetMaterial(requirements interface{}) *gomock.Call
GetMaterial indicates an expected call of GetMaterial
type MockProductService ¶
type MockProductService struct {
// contains filtered or unexported fields
}
MockProductService is a mock of ProductService interface
func NewMockProductService ¶
func NewMockProductService(ctrl *gomock.Controller) *MockProductService
NewMockProductService creates a new mock instance
func (*MockProductService) EXPECT ¶
func (m *MockProductService) EXPECT() *MockProductServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockProductService) SaveProduct ¶
func (m *MockProductService) SaveProduct(destDir string, product *Product) error
SaveProduct mocks base method
type MockProductServiceMockRecorder ¶
type MockProductServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockProductServiceMockRecorder is the mock recorder for MockProductService
func (*MockProductServiceMockRecorder) SaveProduct ¶
func (mr *MockProductServiceMockRecorder) SaveProduct(destDir, product interface{}) *gomock.Call
SaveProduct indicates an expected call of SaveProduct
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRepository) FindByName ¶
func (m *MockRepository) FindByName(name string) (*Mold, error)
FindByName mocks base method
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository
func (*MockRepositoryMockRecorder) FindByName ¶
func (mr *MockRepositoryMockRecorder) FindByName(name interface{}) *gomock.Call
FindByName indicates an expected call of FindByName
func (*MockRepositoryMockRecorder) Save ¶
func (mr *MockRepositoryMockRecorder) Save(m interface{}) *gomock.Call
Save indicates an expected call of Save
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockService) ImportFrom ¶
func (m *MockService) ImportFrom(path, dstName string) (*Mold, error)
ImportFrom mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) ImportFrom ¶
func (mr *MockServiceMockRecorder) ImportFrom(path, dstName interface{}) *gomock.Call
ImportFrom indicates an expected call of ImportFrom
type Mold ¶
type Mold struct {
// contains filtered or unexported fields
}
Mold is aggregation root.
func New ¶
func New(name string, components []*Component, requirements []*MaterialRequirement) *Mold
New creates new Mold instance.
func (*Mold) Components ¶
func (*Mold) Requirements ¶
func (m *Mold) Requirements() []*MaterialRequirement
type Product ¶
type Product struct {
// contains filtered or unexported fields
}
func (*Product) Components ¶
func (p *Product) Components() []*ProductComponent
type ProductComponent ¶
type ProductComponent struct {
// contains filtered or unexported fields
}
func (*ProductComponent) Contents ¶
func (p *ProductComponent) Contents() string
func (*ProductComponent) Path ¶
func (p *ProductComponent) Path() string