()
| 4999 | |
| 5000 | #[test] |
| 5001 | fn test_malformed_contexts() { |
| 5002 | let context = create_unchecked_context().unwrap(); |
| 5003 | let e1 = context.finalize(); |
| 5004 | assert!(e1.is_err()); |
| 5005 | let graph = context.create_graph().unwrap(); |
| 5006 | let e2 = graph.finalize(); |
| 5007 | assert!(e2.is_err()); |
| 5008 | graph |
| 5009 | .set_output_node(graph.create_tuple(vec![]).unwrap()) |
| 5010 | .unwrap(); |
| 5011 | let e4 = context.set_main_graph(graph.clone()); |
| 5012 | assert!(e4.is_err()); |
| 5013 | graph.finalize().unwrap(); |
| 5014 | let e3 = context.finalize(); |
| 5015 | assert!(e3.is_err()); |
| 5016 | context.set_main_graph(graph.clone()).unwrap(); |
| 5017 | context.finalize().unwrap(); |
| 5018 | } |
| 5019 | |
| 5020 | #[test] |
| 5021 | fn test_malformed_call_iterate() { |
nothing calls this directly
no test coverage detected