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

Function test_hash_consistency

atomic-core/src/diff/line.rs:481–485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

479
480 #[test]
481 fn test_hash_consistency() {
482 let line1 = Line::new(b"test\n");
483 let line2 = Line::new(b"test\n");
484 assert_eq!(line1.hash_value(), line2.hash_value());
485 }
486
487 #[test]
488 fn test_hash_different() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected