()
| 180 | |
| 181 | #[test] |
| 182 | fn hash_same_bytes_same_hash() { |
| 183 | let buf = encode(&json!(42)); |
| 184 | let state = std::collections::hash_map::RandomState::new(); |
| 185 | let h1 = hash_field_bytes_with(&buf, val_range(&buf), &state); |
| 186 | let h2 = hash_field_bytes_with(&buf, val_range(&buf), &state); |
| 187 | assert_eq!(h1, h2); |
| 188 | } |
| 189 | |
| 190 | #[test] |
| 191 | fn hash_different_values_likely_differ() { |
nothing calls this directly
no test coverage detected