MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_compute_new_state_deterministic

Function test_compute_new_state_deterministic

atomic-core/src/apply/change.rs:262–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260
261 #[test]
262 fn test_compute_new_state_deterministic() {
263 let current = Merkle::ZERO;
264 let change_hash = test_hash();
265
266 let state1 = compute_new_state(&current, &change_hash);
267 let state2 = compute_new_state(&current, &change_hash);
268
269 assert_eq!(state1, state2);
270 }
271
272 #[test]
273 fn test_compute_new_state_different_changes() {

Callers

nothing calls this directly

Calls 2

compute_new_stateFunction · 0.85
test_hashFunction · 0.70

Tested by

no test coverage detected