MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_builder_full

Function test_builder_full

atomic-core/src/change/attestation.rs:1414–1425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1412
1413 #[test]
1414 fn test_builder_full() {
1415 let a = make_attestation();
1416 assert_eq!(a.session_id, "session-abc");
1417 assert_eq!(a.cost_usd, 0.57);
1418 assert_eq!(a.duration_api_ms, 172_000);
1419 assert_eq!(a.duration_wall_ms, 2_354_000);
1420 assert_eq!(a.code_changes.lines_added, 263);
1421 assert_eq!(a.code_changes.lines_removed, 8);
1422 assert_eq!(a.models.len(), 2);
1423 assert_eq!(a.changes_covered.len(), 3);
1424 assert_eq!(a.timestamp, 1739290034);
1425 }
1426
1427 #[test]
1428 fn test_builder_with_previous() {

Callers

nothing calls this directly

Calls 1

make_attestationFunction · 0.85

Tested by

no test coverage detected