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

Function test_parse_author_full

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

Source from the content-addressed store, hash-verified

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