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

Function test_parse_author_name_only

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

Source from the content-addressed store, hash-verified

245
246 #[test]
247 fn test_parse_author_name_only() {
248 let record = Record::new().with_author("Bob");
249 let author = record.parse_author();
250 assert!(author.is_some());
251 let author = author.unwrap();
252 assert_eq!(author.name, "Bob");
253 assert_eq!(author.email, None);
254 }
255
256 #[test]
257 fn test_parse_author_none() {

Callers

nothing calls this directly

Calls 3

with_authorMethod · 0.45
parse_authorMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected