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

Function test_is_turn_active

atomic-agent/src/turn/session.rs:1700–1709  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1698
1699 #[test]
1700 fn test_is_turn_active() {
1701 let mut s = make_session();
1702 assert!(!s.is_turn_active());
1703 s.phase = Phase::Active;
1704 assert!(s.is_turn_active());
1705 s.phase = Phase::ActiveRecorded;
1706 assert!(s.is_turn_active());
1707 s.phase = Phase::Idle;
1708 assert!(!s.is_turn_active());
1709 }
1710
1711 // Display
1712

Callers

nothing calls this directly

Calls 1

make_sessionFunction · 0.70

Tested by

no test coverage detected