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

Source from the content-addressed store, hash-verified

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