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) 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 ¶ added in v1.26.2
type HistoryEventsReader func() []*historypb.HistoryEvent
type HistoryReader ¶ added in v1.26.2
type HistoryRequire ¶
type HistoryRequire struct {
// contains filtered or unexported fields
}
func New ¶
func New(t require.TestingT) HistoryRequire
func (HistoryRequire) ContainsHistory ¶ added in v1.26.2
func (h HistoryRequire) ContainsHistory(expectedHistorySegment string, actualHistory *historypb.History)
func (HistoryRequire) ContainsHistoryEvents ¶ added in v1.26.2
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 ¶ added in v1.26.2
func (h HistoryRequire) EqualHistoryEventsPrefix(expectedHistoryPrefix string, actualHistoryEvents []*historypb.HistoryEvent)
func (HistoryRequire) EqualHistoryEventsSuffix ¶ added in v1.26.2
func (h HistoryRequire) EqualHistoryEventsSuffix(expectedHistorySuffix string, actualHistoryEvents []*historypb.HistoryEvent)
func (HistoryRequire) EqualHistoryPrefix ¶ added in v1.26.2
func (h HistoryRequire) EqualHistoryPrefix(expectedHistoryPrefix string, actualHistory *historypb.History)
func (HistoryRequire) EqualHistorySuffix ¶ added in v1.26.2
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) WaitForHistory ¶ added in v1.26.2
func (h HistoryRequire) WaitForHistory(expectedHistory string, actualHistoryReader HistoryReader, waitFor time.Duration, tick time.Duration)
func (HistoryRequire) WaitForHistoryEvents ¶ added in v1.26.2
func (h HistoryRequire) WaitForHistoryEvents(expectedHistory string, actualHistoryEventsReader HistoryEventsReader, waitFor time.Duration, tick time.Duration)
func (HistoryRequire) WaitForHistoryEventsSuffix ¶ added in v1.26.2
func (h HistoryRequire) WaitForHistoryEventsSuffix(expectedHistorySuffix string, actualHistoryEventsReader HistoryEventsReader, waitFor time.Duration, tick time.Duration)
func (HistoryRequire) WaitForHistorySuffix ¶ added in v1.26.2
func (h HistoryRequire) WaitForHistorySuffix(expectedHistorySuffix string, actualHistoryReader HistoryReader, waitFor time.Duration, tick time.Duration)
Click to show internal directories.
Click to hide internal directories.