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

Function test_builder_minimal

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

Source from the content-addressed store, hash-verified

1399
1400 #[test]
1401 fn test_builder_minimal() {
1402 let a = Attestation::builder("sess-1", make_agent()).build();
1403 assert_eq!(a.session_id, "sess-1");
1404 assert_eq!(a.agent.name, "claude-code");
1405 assert_eq!(a.version, SCHEMA_VERSION);
1406 assert_eq!(a.cost_usd, 0.0);
1407 assert!(a.models.is_empty());
1408 assert!(a.changes_covered.is_empty());
1409 assert!(a.previous_attestation.is_none());
1410 assert!(a.notes.is_none());
1411 }
1412
1413 #[test]
1414 fn test_builder_full() {

Callers

nothing calls this directly

Calls 2

make_agentFunction · 0.85
buildMethod · 0.45

Tested by

no test coverage detected