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

Function test_parse_author_with_spaces

atomic-cli/src/commands/revise.rs:992–998  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

990
991 #[test]
992 fn test_parse_author_with_spaces() {
993 let mut revise = Revise::new();
994 revise.author = Some(" Alice Bob <alice@example.com> ".to_string());
995 let (name, email) = revise.parse_author().unwrap();
996 assert_eq!(name, "Alice Bob");
997 assert_eq!(email, Some("alice@example.com".to_string()));
998 }
999
1000 // Message Tests
1001

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
parse_authorMethod · 0.45

Tested by

no test coverage detected