Documentation
¶
Index ¶
- type HistoryEventsReader
- type HistoryReader
- type HistoryRequire
- func (h HistoryRequire) ContainsHistory(expectedHistorySegment string, actualHistory *historypb.History)
- func (h HistoryRequire) ContainsHistoryEvents(expectedHistorySegment string, actualHistoryEvents []*historypb.HistoryEvent)
- func (h HistoryRequire) EqualHistory(expectedHistory string, actualHistory *historypb.History)
- func (h HistoryRequire) EqualHistoryEvents(expectedHistory string, actualHistoryEvents []*historypb.HistoryEvent)
- func (h HistoryRequire) EqualHistoryEventsPrefix(expectedHistoryPrefix string, actualHistoryEvents []*historypb.HistoryEvent)
- func (h HistoryRequire) EqualHistoryEventsSuffix(expectedHistorySuffix string, actualHistoryEvents []*historypb.HistoryEvent)
- func (h HistoryRequire) EqualHistoryPrefix(expectedHistoryPrefix string, actualHistory *historypb.History)
- func (h HistoryRequire) EqualHistorySuffix(expectedHistorySuffix string, actualHistory *historypb.History)
- 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)
- func (h HistoryRequire) RequireHistoryEvent(events []*historypb.HistoryEvent, eventType enumspb.EventType) *historypb.HistoryEvent
- func (h HistoryRequire) RequireNoHistoryEvent(events []*historypb.HistoryEvent, eventType enumspb.EventType)
- func (h HistoryRequire) WaitForHistory(expectedHistory string, actualHistoryReader HistoryReader, ...)
- func (h HistoryRequire) WaitForHistoryEvents(expectedHistory string, actualHistoryEventsReader HistoryEventsReader, ...)
- func (h HistoryRequire) WaitForHistoryEventsSuffix(expectedHistorySuffix string, actualHistoryEventsReader HistoryEventsReader, ...)
- func (h HistoryRequire) WaitForHistorySuffix(expectedHistorySuffix string, actualHistoryReader HistoryReader, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistoryEventsReader ¶
type HistoryEventsReader func() []*historypb.HistoryEvent
type HistoryReader ¶
type HistoryRequire ¶
type HistoryRequire struct {
// contains filtered or unexported fields
}
func New ¶
func New(t require.TestingT) HistoryRequire
func (HistoryRequire) ContainsHistory ¶
func (h HistoryRequire) ContainsHistory(expectedHistorySegment string, actualHistory *historypb.History)
func (HistoryRequire) ContainsHistoryEvents ¶
func (h HistoryRequire) ContainsHistoryEvents(expectedHistorySegment string, actualHistoryEvents []*historypb.HistoryEvent)
ContainsHistoryEvents checks if expectedHistorySegment is contained in actualHistoryEvents. actualHistoryEvents are sanitized based on the first event in expectedHistorySegment.
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) EqualHistoryEventsPrefix ¶
func (h HistoryRequire) EqualHistoryEventsPrefix(expectedHistoryPrefix string, actualHistoryEvents []*historypb.HistoryEvent)
func (HistoryRequire) EqualHistoryEventsSuffix ¶
func (h HistoryRequire) EqualHistoryEventsSuffix(expectedHistorySuffix string, actualHistoryEvents []*historypb.HistoryEvent)
func (HistoryRequire) EqualHistoryPrefix ¶
func (h HistoryRequire) EqualHistoryPrefix(expectedHistoryPrefix string, actualHistory *historypb.History)
func (HistoryRequire) EqualHistorySuffix ¶
func (h HistoryRequire) EqualHistorySuffix(expectedHistorySuffix string, actualHistory *historypb.History)
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)
func (HistoryRequire) RequireHistoryEvent ¶
func (h HistoryRequire) RequireHistoryEvent(events []*historypb.HistoryEvent, eventType enumspb.EventType) *historypb.HistoryEvent
RequireHistoryEvent returns the single event matching the given event type. It fails the test if no matching event is found or if more than one is found.
func (HistoryRequire) RequireNoHistoryEvent ¶
func (h HistoryRequire) RequireNoHistoryEvent(events []*historypb.HistoryEvent, eventType enumspb.EventType)
RequireNoHistoryEvent fails the test if any event matches the given event type.
func (HistoryRequire) WaitForHistory ¶
func (h HistoryRequire) WaitForHistory(expectedHistory string, actualHistoryReader HistoryReader, waitFor time.Duration, tick time.Duration)
func (HistoryRequire) WaitForHistoryEvents ¶
func (h HistoryRequire) WaitForHistoryEvents(expectedHistory string, actualHistoryEventsReader HistoryEventsReader, waitFor time.Duration, tick time.Duration)
func (HistoryRequire) WaitForHistoryEventsSuffix ¶
func (h HistoryRequire) WaitForHistoryEventsSuffix(expectedHistorySuffix string, actualHistoryEventsReader HistoryEventsReader, waitFor time.Duration, tick time.Duration)
func (HistoryRequire) WaitForHistorySuffix ¶
func (h HistoryRequire) WaitForHistorySuffix(expectedHistorySuffix string, actualHistoryReader HistoryReader, waitFor time.Duration, tick time.Duration)
Click to show internal directories.
Click to hide internal directories.