testcases

package
v0.0.0-...-48ed108 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallFlowWithCommit

func CallFlowWithCommit(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func CallFlowWithWatch

func CallFlowWithWatch(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func DataFlowConfig

func DataFlowConfig(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func DataStoreGet

func DataStoreGet(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func DataStoreGetWithCommit

func DataStoreGetWithCommit(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func ForkJoin_FirstWins

func ForkJoin_FirstWins(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func ForkJoin_LastWins

func ForkJoin_LastWins(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func Fork_WithCommit

func Fork_WithCommit(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func GetManyLatestOnly

func GetManyLatestOnly(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func GetManyORLabels

func GetManyORLabels(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func GetManySinceLatest

func GetManySinceLatest(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func GetManySinceRev

func GetManySinceRev(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func GetManySinceTime

func GetManySinceTime(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func GetOneByIDAndRev

func GetOneByIDAndRev(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func GetOneLatestByID

func GetOneLatestByID(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func GetOneLatestByLabel

func GetOneLatestByLabel(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func GetOneNotFound

func GetOneNotFound(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func NewTestLogger

func NewTestLogger(t *testing.T) (*slog.Logger, *slogassert.Handler)

func ThreeConsequentNodes

func ThreeConsequentNodes(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func Track

func Track(stateCtx *flowstate.StateCtx, trkr *Tracker)

func TwoConsequentNodes

func TwoConsequentNodes(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func TwoConsequentNodesWithCommit

func TwoConsequentNodesWithCommit(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func WatchLabels

func WatchLabels(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func WatchORLabels

func WatchORLabels(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func WatchSinceLatest

func WatchSinceLatest(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func WatchSinceRev

func WatchSinceRev(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

func WatchSinceTime

func WatchSinceTime(t *testing.T, e *flowstate.Engine, fr flowstate.FlowRegistry, d flowstate.Driver)

Types

type Suite

type Suite struct {
	SetUp        func(t *testing.T) flowstate.Driver
	SetUpDelayer bool
	// contains filtered or unexported fields
}

func Get

func Get(setUp func(t *testing.T) flowstate.Driver) *Suite

func (*Suite) DisableGoleak

func (s *Suite) DisableGoleak()

func (*Suite) Skip

func (s *Suite) Skip(t *testing.T, name string)

func (*Suite) Test

func (s *Suite) Test(main *testing.T)

type Tracker

type Tracker struct {
	IncludeTaskID bool
	IncludeState  bool
	// contains filtered or unexported fields
}

func (*Tracker) Visited

func (trkr *Tracker) Visited() []string

func (*Tracker) VisitedSorted

func (trkr *Tracker) VisitedSorted() []string

func (*Tracker) WaitSortedVisitedEqual

func (trkr *Tracker) WaitSortedVisitedEqual(t *testing.T, expVisited []string, wait time.Duration) []string

func (*Tracker) WaitVisitedCountGreaterOrEqual

func (trkr *Tracker) WaitVisitedCountGreaterOrEqual(t *testing.T, expVisited int, wait time.Duration) []string

func (*Tracker) WaitVisitedEqual

func (trkr *Tracker) WaitVisitedEqual(t *testing.T, expVisited []string, wait time.Duration) []string

Jump to

Keyboard shortcuts

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