()
| 1106 | |
| 1107 | #[test] |
| 1108 | fn test_format_empty_entries() { |
| 1109 | let log = Log::new(); |
| 1110 | |
| 1111 | // All formats should handle empty input gracefully |
| 1112 | assert_eq!(log.format_default(&[], 8), ""); |
| 1113 | assert_eq!(log.format_short(&[], 8), ""); |
| 1114 | assert_eq!(log.format_oneline(&[], 8), ""); |
| 1115 | |
| 1116 | let json_output = log.format_json(&[]); |
| 1117 | assert_eq!(json_output.trim(), "[]"); |
| 1118 | } |
| 1119 | |
| 1120 | #[test] |
| 1121 | fn test_format_short_no_message() { |
nothing calls this directly
no test coverage detected