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

Function test_json_change_clone

atomic-cli/src/commands/change/tests.rs:755–762  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

753
754 #[test]
755 fn test_json_change_clone() {
756 let change = create_test_change();
757 let hash = Hash::of(b"test");
758 let json_change = JsonChange::from_change(&change, &hash, Some(5));
759 let cloned = json_change.clone();
760 assert_eq!(json_change.hash, cloned.hash);
761 assert_eq!(json_change.sequence, cloned.sequence);
762 }
763
764 // Edge Case Tests
765

Callers

nothing calls this directly

Calls 2

create_test_changeFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected