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

Function test_builder_full

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

Source from the content-addressed store, hash-verified

891
892 #[test]
893 fn test_builder_full() {
894 let a = make_attestation();
895 assert_eq!(a.session_id, "session-abc");
896 assert_eq!(a.cost_usd, 0.57);
897 assert_eq!(a.duration_api_ms, 172_000);
898 assert_eq!(a.duration_wall_ms, 2_354_000);
899 assert_eq!(a.code_changes.lines_added, 263);
900 assert_eq!(a.code_changes.lines_removed, 8);
901 assert_eq!(a.models.len(), 2);
902 assert_eq!(a.changes_covered.len(), 3);
903 assert_eq!(a.timestamp, 1739290034);
904 }
905
906 #[test]
907 fn test_builder_with_previous() {

Callers

nothing calls this directly

Calls 1

make_attestationFunction · 0.85

Tested by

no test coverage detected