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

Function test_parse_author_full

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

Source from the content-addressed store, hash-verified

235
236 #[test]
237 fn test_parse_author_full() {
238 let record = Record::new().with_author("Alice <alice@example.com>");
239 let author = record.parse_author();
240 assert!(author.is_some());
241 let author = author.unwrap();
242 assert_eq!(author.name, "Alice");
243 assert_eq!(author.email, Some("alice@example.com".to_string()));
244 }
245
246 #[test]
247 fn test_parse_author_name_only() {

Callers

nothing calls this directly

Calls 3

with_authorMethod · 0.45
parse_authorMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected