inspectiontest

package
v0.52.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestInspectionCreationTime = time.Date(2025, time.January, 1, 1, 1, 1, 1, time.UTC)

TestInspectionCreationTime is a fixed time used across tests to ensure deterministic behavior.

Functions

func NextRunTaskContext

func NextRunTaskContext(originalCtx context.Context, prevRunCtx context.Context) context.Context

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.

func WithDefaultTestInspectionTaskContext

func WithDefaultTestInspectionTaskContext(baseContext context.Context) context.Context

WithDefaultTestInspectionTaskContext returns a new context used for running inspection task.

Types

This section is empty.

Jump to

Keyboard shortcuts

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