()
| 469 | |
| 470 | #[test] |
| 471 | fn plain_format_zero_timestamp() { |
| 472 | let log = LogLine { |
| 473 | timestamp_ms: 0, |
| 474 | level: "ERROR".to_string(), |
| 475 | source: "gateway".to_string(), |
| 476 | target: String::new(), |
| 477 | message: "fail".to_string(), |
| 478 | fields: HashMap::new(), |
| 479 | }; |
| 480 | let result = format_log_line_plain(&log); |
| 481 | assert!(result.starts_with("--:--:-- gateway ERROR fail")); |
| 482 | } |
| 483 | |
| 484 | #[test] |
| 485 | fn plain_format_connect_field_order() { |
nothing calls this directly
no test coverage detected