MCPcopy Create free account
hub / github.com/hashintel/hash / primitive_dedup

Function primitive_dedup

libs/@local/hashql/eval/src/postgres/parameters.rs:316–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314
315 #[test]
316 fn primitive_dedup() {
317 let heap = Heap::new();
318 let string = String::new(heap.intern_symbol("hello"));
319
320 let mut params = Parameters::new_in(Global);
321 let a = params.primitive(Primitive::String(string));
322 let b = params.primitive(Primitive::String(string));
323
324 assert_eq!(a, b);
325 assert_eq!(params.len(), 1);
326 }
327
328 #[test]
329 fn env_dedup() {

Callers

nothing calls this directly

Calls 3

StringClass · 0.85
intern_symbolMethod · 0.45
primitiveMethod · 0.45

Tested by

no test coverage detected