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

Function int_dedup

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

Source from the content-addressed store, hash-verified

304
305 #[test]
306 fn int_dedup() {
307 let mut params = Parameters::new_in(Global);
308 let a = params.int(Int::from(42_i128));
309 let b = params.int(Int::from(42_i128));
310
311 assert_eq!(a, b);
312 assert_eq!(params.len(), 1);
313 }
314
315 #[test]
316 fn primitive_dedup() {

Callers

nothing calls this directly

Calls 2

intMethod · 0.80
fromFunction · 0.50

Tested by

no test coverage detected