MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / test_parse_timestamp

Function test_parse_timestamp

src/accounting/parser.rs:286–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

parse_timestampFunction · 0.85

Tested by

no test coverage detected