(context: Context, source_graph: Graph)
| 42 | } |
| 43 | |
| 44 | fn add_graph_to_context(context: Context, source_graph: Graph) -> Result<Graph> { |
| 45 | let new_graph = context.create_graph()?; |
| 46 | for annotation in source_graph.get_annotations()? { |
| 47 | new_graph.add_annotation(annotation)?; |
| 48 | } |
| 49 | Ok(new_graph) |
| 50 | } |
| 51 | |
| 52 | fn graph_in_new_context(source_graph: Graph) -> Result<(Context, Graph)> { |
| 53 | let context = create_context()?; |
no test coverage detected