()
| 1187 | |
| 1188 | #[test] |
| 1189 | fn test_mixed_with_execution() { |
| 1190 | let mut nodes = vec![ |
| 1191 | goal("g1", "Setup"), |
| 1192 | execution("x1", "npm install"), |
| 1193 | exploration("e1", "src/a.rs"), |
| 1194 | commitment("c1", "src/a.rs"), |
| 1195 | ]; |
| 1196 | let mut edges = Vec::new(); |
| 1197 | let mut stats = GraphStats::default(); |
| 1198 | stats.goal_count = 1; |
| 1199 | stats.execution_count = 1; |
| 1200 | stats.exploration_count = 1; |
| 1201 | stats.commitment_count = 1; |
| 1202 | |
| 1203 | // execution + exploration + commitment = 3 nodes, should form a sequence |
| 1204 | let created = run_consolidate(&mut nodes, &mut edges, &mut stats); |
| 1205 | |
| 1206 | // Might match informed_commit or full_cycle depending on execution handling |
| 1207 | assert!(created <= 1); |
| 1208 | } |
| 1209 | |
| 1210 | #[test] |
| 1211 | fn test_decision_node_gets_goal_edge() { |
nothing calls this directly
no test coverage detected