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

Function test_record_with_identity

atomic-cli/src/commands/record/tests.rs:90–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89 #[test]
90 fn test_record_with_identity() {
91 let record = Record::new()
92 .with_identity("alice")
93 .with_message("Test commit");
94
95 assert_eq!(record.identity, Some("alice".to_string()));
96 assert_eq!(record.message, Some("Test commit".to_string()));
97 }
98
99 #[test]
100 fn test_record_with_usage() {

Callers

nothing calls this directly

Calls 2

with_messageMethod · 0.45
with_identityMethod · 0.45

Tested by

no test coverage detected