()
| 284 | |
| 285 | #[test] |
| 286 | fn test_parse_timestamp() { |
| 287 | // 2026-01-01T00:00:00Z |
| 288 | let ts = parse_timestamp("2026-01-01T00:00:00.000Z"); |
| 289 | assert!(ts.is_some()); |
| 290 | let epoch = ts.unwrap(); |
| 291 | // 2026-01-01 = 56 years from 1970, roughly 20454 days |
| 292 | assert!(epoch > 1_700_000_000); |
| 293 | assert!(epoch < 1_800_000_000); |
| 294 | } |
| 295 | |
| 296 | #[test] |
| 297 | fn test_parse_timestamp_invalid() { |
nothing calls this directly
no test coverage detected