()
| 1118 | |
| 1119 | #[test] |
| 1120 | fn test_format_empty_entries() { |
| 1121 | let log = Log::new(); |
| 1122 | |
| 1123 | // All formats should handle empty input gracefully |
| 1124 | assert_eq!(log.format_default(&[], 8), ""); |
| 1125 | assert_eq!(log.format_short(&[], 8), ""); |
| 1126 | assert_eq!(log.format_oneline(&[], 8), ""); |
| 1127 | |
| 1128 | let json_output = log.format_json(&[]); |
| 1129 | assert_eq!(json_output.trim(), "[]"); |
| 1130 | } |
| 1131 | |
| 1132 | #[test] |
| 1133 | fn test_format_short_no_message() { |
nothing calls this directly
no test coverage detected