historyrequire

package
v1.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 HistoryReader func() *historypb.History

type HistoryRequire

type HistoryRequire struct {
	// contains filtered or unexported fields
}

func New

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) 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL