historyrequire

package
v1.26.2-124.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 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 added in v1.26.2

type HistoryEventsReader func() []*historypb.HistoryEvent

type HistoryReader added in v1.26.2

type HistoryReader func() *historypb.History

type HistoryRequire

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

func New

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)

Jump to

Keyboard shortcuts

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