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

Function test_json_log_entry_clone

atomic-cli/src/commands/log/tests.rs:1089–1105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1087
1088 #[test]
1089 fn test_json_log_entry_clone() {
1090 let entry = JsonLogEntry {
1091 sequence: 42,
1092 hash: "hash123".to_string(),
1093 state: "state456".to_string(),
1094 message: Some("Test".to_string()),
1095 description: None,
1096 authors: vec![],
1097 timestamp: None,
1098 is_tagged: true,
1099 };
1100 let cloned = entry.clone();
1101
1102 assert_eq!(entry.sequence, cloned.sequence);
1103 assert_eq!(entry.hash, cloned.hash);
1104 assert_eq!(entry.is_tagged, cloned.is_tagged);
1105 }
1106
1107 #[test]
1108 fn test_format_empty_entries() {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected