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

Function test_parse_author_full

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

Source from the content-addressed store, hash-verified

875
876 #[test]
877 fn test_parse_author_full() {
878 let mut revise = Revise::new();
879 revise.author = Some("Alice <alice@example.com>".to_string());
880 let (name, email) = revise.parse_author().unwrap();
881 assert_eq!(name, "Alice");
882 assert_eq!(email, Some("alice@example.com".to_string()));
883 }
884
885 #[test]
886 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