()
| 311 | |
| 312 | #[test] |
| 313 | fn explicit_after_hint_orders_nodes() { |
| 314 | let mut graph = Graph::new(); |
| 315 | graph.push(PassNode::new("later", record("later")) |
| 316 | .with_after(&["earlier"])); |
| 317 | graph.push(PassNode::new("earlier", record("earlier"))); |
| 318 | let mut ctx = Vec::new(); |
| 319 | graph.execute(&mut ctx).unwrap(); |
| 320 | assert_eq!(ctx, vec!["earlier", "later"]); |
| 321 | } |
| 322 | |
| 323 | #[test] |
| 324 | fn explicit_before_hint_orders_nodes() { |
nothing calls this directly
no test coverage detected