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

Function test_stdio_transport_is_connected_initial

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

Source from the content-addressed store, hash-verified

267
268 #[tokio::test]
269 async fn test_stdio_transport_is_connected_initial() {
270 let result = StdioTransport::spawn("cat", &[], &HashMap::new()).await;
271 if let Ok(transport) = result {
272 assert!(transport.is_connected());
273 let _ = transport.close().await;
274 }
275 }
276
277 #[tokio::test]
278 async fn test_stdio_transport_close_disconnects() {

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected