MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_session_queue_config_builders

Function test_session_queue_config_builders

core/src/queue.rs:475–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473
474 #[test]
475 fn test_session_queue_config_builders() {
476 let config = SessionQueueConfig::default()
477 .with_dlq(Some(500))
478 .with_metrics()
479 .with_alerts()
480 .with_timeout(30_000);
481
482 assert!(config.enable_dlq);
483 assert_eq!(config.dlq_max_size, Some(500));
484 assert!(config.enable_metrics);
485 assert!(config.enable_alerts);
486 assert_eq!(config.default_timeout_ms, Some(30_000));
487 }
488
489 #[test]
490 fn test_session_queue_config_with_lane_features() {

Callers

nothing calls this directly

Calls 4

with_alertsMethod · 0.80
with_metricsMethod · 0.80
with_dlqMethod · 0.80
with_timeoutMethod · 0.45

Tested by

no test coverage detected