()
| 567 | |
| 568 | #[test] |
| 569 | fn test_format_json_single_entry() { |
| 570 | let log = Log::new(); |
| 571 | let entry = create_test_entry_with_header(); |
| 572 | let output = log.format_json(&[entry]); |
| 573 | |
| 574 | // Should be valid JSON array |
| 575 | let parsed: serde_json::Value = serde_json::from_str(&output).unwrap(); |
| 576 | assert!(parsed.is_array()); |
| 577 | assert_eq!(parsed.as_array().unwrap().len(), 1); |
| 578 | } |
| 579 | |
| 580 | #[test] |
| 581 | fn test_format_json_multiple_entries() { |
nothing calls this directly
no test coverage detected