(ctx context.Context, include, exclude []string)
| 124 | } |
| 125 | |
| 126 | func (node *ModTreeNode) RunGeneratorAsCheck(ctx context.Context, include, exclude []string) error { |
| 127 | return node.runAsCheck(ctx, |
| 128 | func(n *ModTreeNode) bool { return n.IsGenerator }, |
| 129 | func(n *ModTreeNode, ctx context.Context) (bool, error) { |
| 130 | return n.tryRunGeneratorAsCheckScaleOut(ctx) |
| 131 | }, |
| 132 | func(n *ModTreeNode, ctx context.Context) error { |
| 133 | return n.runGeneratorAsCheckLocally(ctx) |
| 134 | }, |
| 135 | include, exclude) |
| 136 | } |
| 137 | |
| 138 | // runAsCheck runs a leaf node as a check, with telemetry span and optional scale-out. |
| 139 | func (node *ModTreeNode) runAsCheck( |
no test coverage detected