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

Function test_session_queue_metrics_enabled

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

Source from the content-addressed store, hash-verified

1957
1958#[tokio::test(flavor = "multi_thread")]
1959async fn test_session_queue_metrics_enabled() {
1960 let agent = Agent::from_config(test_config()).await.unwrap();
1961 let qc = SessionQueueConfig::default().with_metrics();
1962 let opts = SessionOptions::new().with_queue_config(qc);
1963 let session = agent
1964 .session("/tmp/test-workspace-met", Some(opts))
1965 .unwrap();
1966 let metrics = session.queue_metrics().await;
1967 assert!(metrics.is_some());
1968}
1969
1970#[tokio::test(flavor = "multi_thread")]
1971async fn test_session_set_lane_handler() {

Callers

nothing calls this directly

Calls 5

with_metricsMethod · 0.80
with_queue_configMethod · 0.80
test_configFunction · 0.70
sessionMethod · 0.45
queue_metricsMethod · 0.45

Tested by

no test coverage detected