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

Function test_active_session_start_warn

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

Source from the content-addressed store, hash-verified

943
944 #[test]
945 fn test_active_session_start_warn() {
946 let r = transition(
947 Phase::Active,
948 Event::SessionStart,
949 TransitionContext::default(),
950 );
951 assert_eq!(r.new_phase, Phase::Active);
952 assert_eq!(r.actions, vec![Action::WarnStaleSession]);
953 }
954
955 #[test]
956 fn test_active_session_stop() {

Callers

nothing calls this directly

Calls 1

transitionFunction · 0.85

Tested by

no test coverage detected