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

Source from the content-addressed store, hash-verified

262
263 #[test]
264 fn test_parse_author_name_only() {
265 let record = Record::new().with_author("Bob");
266 let author = record.parse_author();
267 assert!(author.is_some());
268 let author = author.unwrap();
269 assert_eq!(author.name, "Bob");
270 assert_eq!(author.email, None);
271 }
272
273 #[test]
274 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