entity

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInventoryItem added in v0.2.0

type MockInventoryItem struct {
	mock.Mock
	// Used to distinguish instances
	Data string
}

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

type MockInventoryItemConstructor struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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