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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
parse_authorMethod · 0.45

Tested by

no test coverage detected