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

Function test_parse_author_full

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

Source from the content-addressed store, hash-verified

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