MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_session_default

Function test_session_default

core/src/agent_api/tests.rs:342–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340
341#[tokio::test]
342async fn test_session_default() {
343 let agent = Agent::from_config(test_config()).await.unwrap();
344 let session = agent.session("/tmp/test-workspace", None);
345 assert!(session.is_ok());
346 let debug = format!("{:?}", session.unwrap());
347 assert!(debug.contains("AgentSession"));
348}
349
350#[tokio::test]
351async fn test_session_uses_workspace_backend_for_direct_tools() {

Callers

nothing calls this directly

Calls 2

test_configFunction · 0.70
sessionMethod · 0.45

Tested by

no test coverage detected