MCPcopy Index your code
hub / github.com/ciphermodelabs/ciphercore / test_malformed_contexts

Function test_malformed_contexts

ciphercore-base/src/graphs.rs:5001–5018  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

create_unchecked_contextFunction · 0.85
cloneMethod · 0.80
finalizeMethod · 0.45
create_graphMethod · 0.45
set_output_nodeMethod · 0.45
create_tupleMethod · 0.45
set_main_graphMethod · 0.45

Tested by

no test coverage detected