MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / hash_distinguishes_count_from_value

Function hash_distinguishes_count_from_value

native/shared/src/sdf_cache.rs:225–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223
224 #[test]
225 fn hash_distinguishes_count_from_value() {
226 // Two empty inputs must hash distinctly from a single-zero
227 // input — guards against the count-fold being load-bearing.
228 let h_empty = compute_mesh_hash(&[], &[]);
229 let h_one = compute_mesh_hash(&[[0.0_f32; 3]], &[0_u32]);
230 assert_ne!(h_empty, h_one);
231 }
232
233 #[test]
234 fn store_then_load_roundtrips() {

Callers

nothing calls this directly

Calls 1

compute_mesh_hashFunction · 0.85

Tested by

no test coverage detected