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

Function pgwire_param_extraction_roundtrips

nodedb/src/control/trace_context.rs:139–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137
138 #[test]
139 fn pgwire_param_extraction_roundtrips() {
140 let tid = TraceId::generate();
141 let mut params = std::collections::HashMap::new();
142 params.insert("trace_id".into(), tid.to_string());
143 let extracted = extract_from_pgwire_params(&params);
144 assert_eq!(extracted, tid);
145 }
146
147 #[test]
148 fn pgwire_param_generates_when_missing() {

Callers

nothing calls this directly

Calls 3

to_stringMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected