Documentation ¶
Index ¶
- type MockInventoryItem
- func (i *MockInventoryItem) ChangeLocation(location string) error
- func (i *MockInventoryItem) ChangeName(name string) error
- func (i *MockInventoryItem) CheckIn() error
- func (i *MockInventoryItem) Checkout() error
- func (i *MockInventoryItem) ID() entity.ID
- func (i *MockInventoryItem) InitID(id entity.ID) error
- func (i *MockInventoryItem) IsAvailable() bool
- func (i *MockInventoryItem) Location() string
- func (i *MockInventoryItem) Name() string
- type MockInventoryItemConstructor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInventoryItem ¶ added in v0.2.0
MockInventoryItem is for mocking
func (*MockInventoryItem) ChangeLocation ¶ added in v0.2.0
func (i *MockInventoryItem) ChangeLocation(location string) error
ChangeLocation is for mocking
func (*MockInventoryItem) ChangeName ¶ added in v0.2.0
func (i *MockInventoryItem) ChangeName(name string) error
ChangeName is for mocking
func (*MockInventoryItem) CheckIn ¶ added in v0.2.0
func (i *MockInventoryItem) CheckIn() error
CheckIn is for mocking
func (*MockInventoryItem) Checkout ¶ added in v0.2.0
func (i *MockInventoryItem) Checkout() error
Checkout is for mocking
func (*MockInventoryItem) ID ¶ added in v0.2.0
func (i *MockInventoryItem) ID() entity.ID
ID is for mocking
func (*MockInventoryItem) InitID ¶ added in v0.2.0
func (i *MockInventoryItem) InitID(id entity.ID) error
InitID is for mocking
func (*MockInventoryItem) IsAvailable ¶ added in v0.2.0
func (i *MockInventoryItem) IsAvailable() bool
IsAvailable is for mocking
func (*MockInventoryItem) Location ¶ added in v0.2.0
func (i *MockInventoryItem) Location() string
Location is for mocking
func (*MockInventoryItem) Name ¶ added in v0.2.0
func (i *MockInventoryItem) Name() string
Name is for mocking
type MockInventoryItemConstructor ¶ added in v0.2.0
MockInventoryItemConstructor is for mocking
func (*MockInventoryItemConstructor) NewAvailable ¶ added in v0.2.0
func (i *MockInventoryItemConstructor) NewAvailable(name string, location string) (entity.InventoryItem, error)
NewAvailable is for mocking
func (*MockInventoryItemConstructor) Reincarnate ¶ added in v0.2.0
func (i *MockInventoryItemConstructor) Reincarnate(id entity.ID, name string, location string, available bool) entity.InventoryItem
Reincarnate is for mocking
Click to show internal directories.
Click to hide internal directories.