MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / unknown_after_is_reported

Function unknown_after_is_reported

native/shared/src/renderer/graph.rs:367–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 4

recordFunction · 0.85
with_afterMethod · 0.80
scheduleMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected