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

Function test_change_hash

atomic-core/src/change/change.rs:1403–1413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1401
1402 #[test]
1403 fn test_change_hash() {
1404 let change = Change::new(
1405 ChangeHeader::new("Test hash"),
1406 vec![],
1407 b"content".to_vec(),
1408 vec![],
1409 );
1410 let hash = change.hash().unwrap();
1411 // Hash should be non-zero
1412 assert_ne!(hash, Hash::of(&[]));
1413 }
1414
1415 #[test]
1416 fn test_change_depends_on() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
hashMethod · 0.45

Tested by

no test coverage detected