MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / test_workflow_context

Function test_workflow_context

tests/rust_unit_tests/workflow_tests.rs:386–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

384
385#[tokio::test]
386async fn test_workflow_context() {
387 let mut context = WorkflowContext::new(WorkflowId::new());
388 let node_id = NodeId::from_string("test_node").unwrap();
389
390 let output = json!({
391 "result": "success",
392 "value": 42
393 });
394
395 context
396 .node_outputs
397 .insert(node_id.to_string(), output.clone());
398 let stored = context.node_outputs.get(&node_id.to_string()).unwrap();
399 assert_eq!(stored, &output);
400}
401
402#[tokio::test]
403async fn test_workflow_builder() {

Callers

nothing calls this directly

Calls 4

insertMethod · 0.80
to_stringMethod · 0.80
cloneMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected