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

Function test_session_state_clear_ended_at

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

Source from the content-addressed store, hash-verified

960
961 #[test]
962 fn test_session_state_clear_ended_at() {
963 let mut s = make_session();
964 s.set_phase(Phase::Ended);
965 assert!(s.ended_at.is_some());
966
967 s.clear_ended_at();
968 assert!(s.ended_at.is_none());
969 }
970
971 // Serde roundtrip
972

Callers

nothing calls this directly

Calls 3

make_sessionFunction · 0.70
set_phaseMethod · 0.45
clear_ended_atMethod · 0.45

Tested by

no test coverage detected