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

Source from the content-addressed store, hash-verified

866
867 #[test]
868 fn test_parse_author_name_only() {
869 let mut revise = Revise::new();
870 revise.author = Some("Alice".to_string());
871 let (name, email) = revise.parse_author().unwrap();
872 assert_eq!(name, "Alice");
873 assert!(email.is_none());
874 }
875
876 #[test]
877 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