| 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() { |