Documentation
¶
Index ¶
- Variables
- func NextRunTaskContext(originalCtx context.Context, prevRunCtx context.Context) context.Context
- func RunInspectionTask[T any](baseContext context.Context, task coretask.Task[T], ...) (T, *typedmap.ReadonlyTypedMap, error)
- func RunInspectionTaskWithDependency[T any](baseContext context.Context, mainTask coretask.Task[T], ...) (T, *typedmap.ReadonlyTypedMap, error)
- func WithDefaultTestInspectionTaskContext(baseContext context.Context) context.Context
Constants ¶
This section is empty.
Variables ¶
TestInspectionCreationTime is a fixed time used across tests to ensure deterministic behavior.
Functions ¶
func NextRunTaskContext ¶
NextRunTaskContext generates a new context used for running inspection task from the task context used for previous task run.
func RunInspectionTask ¶
func RunInspectionTask[T any](baseContext context.Context, task coretask.Task[T], mode inspectioncore_contract.InspectionTaskModeType, input map[string]any, taskDependencyValues ...tasktest.TaskDependencyValues) (T, *typedmap.ReadonlyTypedMap, error)
RunInspectionTask execute a single task with given context. Use WithDefaultTestInspectionTaskContext to get the context.
func RunInspectionTaskWithDependency ¶
func RunInspectionTaskWithDependency[T any](baseContext context.Context, mainTask coretask.Task[T], dependencies []coretask.UntypedTask, mode inspectioncore_contract.InspectionTaskModeType, input map[string]any) (T, *typedmap.ReadonlyTypedMap, error)
RunInspectionTaskWithDependency execute a task as a graph. Supply dependencies needed to be used with the mainTask.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.