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

Source from the content-addressed store, hash-verified

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