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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
parse_authorMethod · 0.45

Tested by

no test coverage detected