MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_list

Function test_list

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

Source from the content-addressed store, hash-verified

204
205 #[tokio::test]
206 async fn test_list() {
207 let mgr = SessionStatusManager::new();
208 mgr.set_busy("ses_1").await;
209 mgr.set_busy("ses_2").await;
210 let list = mgr.list().await;
211 assert_eq!(list.len(), 2);
212 assert!(list.contains_key("ses_1"));
213 assert!(list.contains_key("ses_2"));
214 }
215
216 #[tokio::test]
217 async fn test_with_bus() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
set_busyMethod · 0.45
listMethod · 0.45

Tested by

no test coverage detected