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

Function test_stdio_transport_close_disconnects

core/src/mcp/transport/stdio.rs:278–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276
277 #[tokio::test]
278 async fn test_stdio_transport_close_disconnects() {
279 let result = StdioTransport::spawn("cat", &[], &HashMap::new()).await;
280 if let Ok(transport) = result {
281 assert!(transport.is_connected());
282 transport.close().await.unwrap();
283 assert!(!transport.is_connected());
284 }
285 }
286
287 #[tokio::test]
288 async fn test_stdio_transport_spawn_with_args() {

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected