MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_all_transitions_count

Function test_all_transitions_count

atomic-agent/src/turn/phase.rs:1231–1249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1229
1230 #[test]
1231 fn test_all_transitions_count() {
1232 // 4 phases × 5 events = 20 transitions × 2 contexts = 40
1233 // Verify we exercise them all in the exhaustive test above
1234 let mut count = 0;
1235 let contexts = [
1236 TransitionContext::default(),
1237 TransitionContext::with_files_changed(),
1238 ];
1239
1240 for _phase in &ALL_PHASES {
1241 for _event in &ALL_EVENTS {
1242 for _ctx in &contexts {
1243 count += 1;
1244 }
1245 }
1246 }
1247
1248 assert_eq!(count, 40);
1249 }
1250
1251 // Context tests
1252

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected