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:73–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72 #[test]
73 fn test_record_with_identity() {
74 let record = Record::new()
75 .with_identity("alice")
76 .with_message("Test commit");
77
78 assert_eq!(record.identity, Some("alice".to_string()));
79 assert_eq!(record.message, Some("Test commit".to_string()));
80 }
81
82 #[test]
83 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