Documentation
¶
Overview ¶
Package storetest provides shared mock implementations of stores.Store for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶
MockStore is a configurable mock implementation of stores.Store for testing. Configure behavior by setting fields before use:
store := &storetest.MockStore{Items: []any{item1, item2}}
store := &storetest.MockStore{ListErr: errors.New("fail")}
store := &storetest.MockStore{} // no-op store
Click to show internal directories.
Click to hide internal directories.