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

Function test_parse_author_full

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

Source from the content-addressed store, hash-verified

981
982 #[test]
983 fn test_parse_author_full() {
984 let mut revise = Revise::new();
985 revise.author = Some("Alice <alice@example.com>".to_string());
986 let (name, email) = revise.parse_author().unwrap();
987 assert_eq!(name, "Alice");
988 assert_eq!(email, Some("alice@example.com".to_string()));
989 }
990
991 #[test]
992 fn test_parse_author_with_spaces() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
parse_authorMethod · 0.45

Tested by

no test coverage detected