Documentation ¶
Index ¶
- type HistoryRequire
- func (h HistoryRequire) EqualHistory(expectedHistory string, actualHistory *historypb.History)
- func (h HistoryRequire) EqualHistoryEvents(expectedHistory string, actualHistoryEvents []*historypb.HistoryEvent)
- func (h HistoryRequire) EqualHistoryEventsAndVersions(expectedHistory string, expectedVersions []int, ...)
- func (h HistoryRequire) PrintHistory(history *historypb.History)
- func (h HistoryRequire) PrintHistoryCompact(history *historypb.History)
- func (h HistoryRequire) PrintHistoryEvents(events []*historypb.HistoryEvent)
- func (h HistoryRequire) PrintHistoryEventsCompact(events []*historypb.HistoryEvent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistoryRequire ¶
type HistoryRequire struct {
// contains filtered or unexported fields
}
func New ¶
func New(t require.TestingT) HistoryRequire
func (HistoryRequire) EqualHistory ¶
func (h HistoryRequire) EqualHistory(expectedHistory string, actualHistory *historypb.History)
func (HistoryRequire) EqualHistoryEvents ¶
func (h HistoryRequire) EqualHistoryEvents(expectedHistory string, actualHistoryEvents []*historypb.HistoryEvent)
func (HistoryRequire) EqualHistoryEventsAndVersions ¶
func (h HistoryRequire) EqualHistoryEventsAndVersions(expectedHistory string, expectedVersions []int, actualHistory []*historypb.HistoryEvent)
EqualHistoryEventsAndVersions makes an assertion about the events in history and their failover versions. TODO(dan) instead of passing versions slice, support an optional version field after eventId in the event format? E.g. `3 2 WorkflowExecutionSignaled`
func (HistoryRequire) PrintHistory ¶
func (h HistoryRequire) PrintHistory(history *historypb.History)
func (HistoryRequire) PrintHistoryCompact ¶
func (h HistoryRequire) PrintHistoryCompact(history *historypb.History)
func (HistoryRequire) PrintHistoryEvents ¶
func (h HistoryRequire) PrintHistoryEvents(events []*historypb.HistoryEvent)
func (HistoryRequire) PrintHistoryEventsCompact ¶
func (h HistoryRequire) PrintHistoryEventsCompact(events []*historypb.HistoryEvent)
Click to show internal directories.
Click to hide internal directories.