Skip to main content

validate_view

Function validate_view 

Source
pub fn validate_view<V: GraphView>(view: &V) -> Result<(), ValidationError>
Expand description

Validates a GraphView (TaskGraph, ValidationView, or any other implementation).

Checks that:

  • All task references (before, after, validations) point to existing tasks
  • Non-gate tasks cannot have gates as after dependencies
  • Validation references point to root gates (gates without before targets)
  • The graph forms a DAG (no cycles)

Deleted tasks are skipped and not validated.