MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / assert_shape

Function assert_shape

nodedb/tests/http_client_sharing.rs:27–29  ·  view source on GitHub ↗
(state: &SharedState)

Source from the content-addressed store, hash-verified

25#[test]
26fn shared_state_exposes_shared_reqwest_client() {
27 fn assert_shape(state: &SharedState) {
28 let _client: &Arc<reqwest::Client> = state.http_client();
29 }
30 // The function body compiles only when the API exists; the test itself
31 // does not need to construct a SharedState (which is heavy) — the
32 // compile check is the regression guard.

Callers

nothing calls this directly

Calls 3

export_trace_with_clientFunction · 0.85
http_clientMethod · 0.80

Tested by

no test coverage detected