Documentation ¶
Index ¶
- func CtxConflict(ctx string) (string, error)
- func CtxConflictMap(ctx int, input map[int]int) ([]int, error)
- func CtxConflictParallel(ctx string) (string, string, error)
- func CtxConflictSlice(ctx string, target []string) error
- func NilParam()
- func ParamOrder(track *orderCheck) error
- func PredicateCtxConflict(f func(), ctx bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CtxConflict ¶
CtxConflict introduces a variable conflict with ctx to demonstrate that cff does not shadow variables.
func CtxConflictMap ¶
CtxConflictMap introduces a variable conflict with ctx within cff.Map function to demonstrate that cff does not shadow variables.
func CtxConflictParallel ¶
CtxConflictParallel introduces a variable conflict with ctx within cff.Parallel Task to demonstrate that cff does not shadow variables.
func CtxConflictSlice ¶
CtxConflictSlice introduces a variable conflict with ctx within cff.Slice function to demonstrate that cff does not shadow variables.
func NilParam ¶
func NilParam()
NilParam verifies that cff.Flow is compilable with a user provided nil. cff should compile and generate this flow even if no test function uses it.
func ParamOrder ¶
func ParamOrder(track *orderCheck) error
ParamOrder initializes a cff.Flow to test that the order in which user provided expressions are evalauted matches the order in which they were provided to the cff.Flow.
func PredicateCtxConflict ¶
PredicateCtxConflict runs the provided function in a task flow if the provided boolean is true. This tests if the cff flow works even when the ctx variable is shadowed.
Types ¶
This section is empty.