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

Function test_parse_author_name_only

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

Source from the content-addressed store, hash-verified

972
973 #[test]
974 fn test_parse_author_name_only() {
975 let mut revise = Revise::new();
976 revise.author = Some("Alice".to_string());
977 let (name, email) = revise.parse_author().unwrap();
978 assert_eq!(name, "Alice");
979 assert!(email.is_none());
980 }
981
982 #[test]
983 fn test_parse_author_full() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
parse_authorMethod · 0.45

Tested by

no test coverage detected