MCPcopy Create free account
hub / github.com/base/base / rpc_client_https_scheme_builds_provider

Function rpc_client_https_scheme_builds_provider

crates/consensus/engine/src/client.rs:442–449  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440 /// `rpc_client` with an `https://` URL must also build without connecting.
441 #[tokio::test]
442 async fn rpc_client_https_scheme_builds_provider() {
443 let addr: Url = "https://127.0.0.1:8551".parse().unwrap();
444 let jwt = JwtSecret::random();
445 let _provider =
446 BaseEngineClient::<RootProvider, RootProvider<Base>>::rpc_client::<Base>(addr, jwt)
447 .await
448 .unwrap();
449 }
450
451 /// `rpc_client` with an unsupported URL scheme must fail with a clear validation error.
452 #[tokio::test]

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected