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

Function test_builder_minimal

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

Source from the content-addressed store, hash-verified

878
879 #[test]
880 fn test_builder_minimal() {
881 let a = Attestation::builder("sess-1", make_agent()).build();
882 assert_eq!(a.session_id, "sess-1");
883 assert_eq!(a.agent.name, "claude-code");
884 assert_eq!(a.version, SCHEMA_VERSION);
885 assert_eq!(a.cost_usd, 0.0);
886 assert!(a.models.is_empty());
887 assert!(a.changes_covered.is_empty());
888 assert!(a.previous_attestation.is_none());
889 assert!(a.notes.is_none());
890 }
891
892 #[test]
893 fn test_builder_full() {

Callers

nothing calls this directly

Calls 2

make_agentFunction · 0.85
buildMethod · 0.45

Tested by

no test coverage detected