test(graph): cover map subgraph chains, output contract and teammate lifetime

This commit is contained in:
Dark-Alex-17 committed 2026-09-11 10:56:26 -06:00
1 parent f1cf9a6ae7
commit 0083cf0c42
4 files changed
+977 -4

No files matched your search

+16
View File
@@ -1509,4 +1509,20 @@ nodes:
assert!(!serde_yaml::to_string(&graph).unwrap().contains("driver"));
}
#[test]
fn graph_state_remove_returns_previous_value_and_drops_key() {
let mut state = GraphState::new(HashMap::from([("k".to_string(), json!(1))]));
assert_eq!(state.remove("k"), Some(json!(1)));
assert_eq!(state.get("k"), None);
assert!(state.data().is_empty());
}
#[test]
fn graph_state_remove_missing_key_is_none() {
let mut state = GraphState::new(HashMap::new());
assert_eq!(state.remove("k"), None);
}
}