shadowedvar

package
v0.0.0-...-bbba1a6 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxConflict

func CtxConflict(ctx string) (string, error)

CtxConflict introduces a variable conflict with ctx to demonstrate that cff does not shadow variables.

func CtxConflictMap

func CtxConflictMap(ctx int, input map[int]int) ([]int, error)

CtxConflictMap introduces a variable conflict with ctx within cff.Map function to demonstrate that cff does not shadow variables.

func CtxConflictParallel

func CtxConflictParallel(ctx string) (string, string, error)

CtxConflictParallel introduces a variable conflict with ctx within cff.Parallel Task to demonstrate that cff does not shadow variables.

func CtxConflictSlice

func CtxConflictSlice(ctx string, target []string) error

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

func PredicateCtxConflict(f func(), ctx bool) error

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.

Jump to

Keyboard shortcuts

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