Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gorcure ¶
type Gorcure struct {
// Updates holds every update passed to Publish/PublishUpdate, in order.
Updates []contracts.Update
// ID is the fake event id returned by every call.
ID string
// Err, when set, is returned by every call without recording the update.
Err error
}
Gorcure is a test double recording every published update. It satisfies contracts.Gorcure so it can replace the real publisher in tests.
Click to show internal directories.
Click to hide internal directories.