()
| 365 | |
| 366 | #[test] |
| 367 | fn unknown_after_is_reported() { |
| 368 | let mut graph: Graph<'_, TestCtx> = Graph::new(); |
| 369 | graph.push(PassNode::new("a", record("a")) |
| 370 | .with_after(&["does_not_exist"])); |
| 371 | let err = graph.schedule().unwrap_err(); |
| 372 | match err { |
| 373 | GraphError::UnknownNode { node, referenced } => { |
| 374 | assert_eq!(node, "a"); |
| 375 | assert_eq!(referenced, "does_not_exist"); |
| 376 | } |
| 377 | _ => panic!("expected UnknownNode"), |
| 378 | } |
| 379 | } |
| 380 | |
| 381 | #[test] |
| 382 | fn cycle_via_explicit_hints_is_rejected() { |
nothing calls this directly
no test coverage detected