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:338–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336
337 #[test]
338 fn test_compute_new_state_deterministic() {
339 let current = Merkle::ZERO;
340 let change_hash = test_hash();
341
342 let state1 = compute_new_state(&current, &change_hash);
343 let state2 = compute_new_state(&current, &change_hash);
344
345 assert_eq!(state1, state2);
346 }
347
348 #[test]
349 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