Versions in this module Expand all Collapse all v0 v0.99.3 Jan 3, 2021 v0.99.2 Jan 3, 2021 Changes in this version + const MockKind + var CmpOptions = append(semantictest.CmpOptions, cmp.AllowUnexported(flux.Spec{}), ...) + func CompareLogicalPlanNodes(p, q plan.Node) error + func CompareLogicalPlans(p, q *plan.Spec) error + func ComparePhysicalPlanNodes(p, q plan.Node) error + func ComparePlans(p, q *plan.Spec, f func(p, q plan.Node) error) error + func ComparePlansShallow(p, q *plan.Spec) error + func CreateLogicalMockNode(id string) *plan.LogicalNode + func CreatePhysicalMockNode(id string) *plan.PhysicalPlanNode + func CreatePlanSpec(spec *PlanSpec) *plan.Spec + func LogicalRuleTestHelper(t *testing.T, tc *RuleTestCase) + func PhysicalRuleTestHelper(t *testing.T, tc *RuleTestCase) + type CreateCycleRule struct + Kind plan.ProcedureKind + Node plan.Node + func (CreateCycleRule) Name() string + func (ccr CreateCycleRule) Pattern() plan.Pattern + func (ccr CreateCycleRule) Rewrite(ctx context.Context, node plan.Node) (plan.Node, bool, error) + type FunctionRule struct + RewriteFn func(ctx context.Context, node plan.Node) (plan.Node, bool, error) + func (fr *FunctionRule) Name() string + func (fr *FunctionRule) Pattern() plan.Pattern + func (fr *FunctionRule) Rewrite(ctx context.Context, node plan.Node) (plan.Node, bool, error) + type MockProcedureSpec struct + func (MockProcedureSpec) Copy() plan.ProcedureSpec + func (MockProcedureSpec) Kind() plan.ProcedureKind + type MultiRootRule struct + SeenNodes []plan.NodeID + func (sr *MultiRootRule) Name() string + func (sr *MultiRootRule) Pattern() plan.Pattern + func (sr *MultiRootRule) Rewrite(ctx context.Context, node plan.Node) (plan.Node, bool, error) + type PlanSpec struct + Edges [][2]int + Nodes []plan.Node + Now time.Time + Resources flux.ResourceManagement + func (ps *PlanSpec) Copy() *PlanSpec + type RuleTestCase struct + After *PlanSpec + Before *PlanSpec + Context context.Context + Name string + NoChange bool + Rules []plan.Rule + ValidateError error + type SimpleRule struct + SeenNodes []plan.NodeID + func (sr *SimpleRule) Name() string + func (sr *SimpleRule) Pattern() plan.Pattern + func (sr *SimpleRule) Rewrite(ctx context.Context, node plan.Node) (plan.Node, bool, error) + type SmashPlanRule struct + Intruder plan.Node + Kind plan.ProcedureKind + Node plan.Node + func (SmashPlanRule) Name() string + func (spp SmashPlanRule) Pattern() plan.Pattern + func (spp SmashPlanRule) Rewrite(ctx context.Context, node plan.Node) (plan.Node, bool, error)