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

Function test_clone

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

Source from the content-addressed store, hash-verified

530
531 #[test]
532 fn test_clone() {
533 let line1 = Line::new(b"hello\n");
534 let line2 = line1.clone();
535 assert_eq!(line1, line2);
536 assert_eq!(line1.hash_value(), line2.hash_value());
537 }
538
539 #[test]
540 fn test_hash_in_hashset() {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected