MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_set_idle_removes

Function test_set_idle_removes

crates/opencode-session/src/status.rs:175–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173
174 #[tokio::test]
175 async fn test_set_idle_removes() {
176 let mgr = SessionStatusManager::new();
177 mgr.set_busy("ses_123").await;
178 mgr.set_idle("ses_123").await;
179 assert!(!mgr.is_busy("ses_123").await);
180 let list = mgr.list().await;
181 assert!(!list.contains_key("ses_123"));
182 }
183
184 #[tokio::test]
185 async fn test_set_retry() {

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
set_busyMethod · 0.45
set_idleMethod · 0.45
listMethod · 0.45

Tested by

no test coverage detected