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

Source from the content-addressed store, hash-verified

784
785 #[test]
786 fn test_json_change_clone() {
787 let change = create_test_change();
788 let hash = Hash::of(b"test");
789 let json_change = JsonChange::from_change(&change, &hash, Some(5));
790 let cloned = json_change.clone();
791 assert_eq!(json_change.hash, cloned.hash);
792 assert_eq!(json_change.sequence, cloned.sequence);
793 }
794
795 // Edge Case Tests
796

Callers

nothing calls this directly

Calls 2

create_test_changeFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected