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

Source from the content-addressed store, hash-verified

252
253 #[test]
254 fn test_parse_author_full() {
255 let record = Record::new().with_author("Alice <alice@example.com>");
256 let author = record.parse_author();
257 assert!(author.is_some());
258 let author = author.unwrap();
259 assert_eq!(author.name, "Alice");
260 assert_eq!(author.email, Some("alice@example.com".to_string()));
261 }
262
263 #[test]
264 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