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

Function test_revise_builder_chain

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

Source from the content-addressed store, hash-verified

944
945 #[test]
946 fn test_revise_builder_chain() {
947 let revise = Revise::new()
948 .with_reference("@~2")
949 .with_message("Updated")
950 .with_reword(false)
951 .with_dry_run(true);
952
953 assert_eq!(revise.reference, "@~2");
954 assert_eq!(revise.message, Some("Updated".to_string()));
955 assert!(!revise.reword);
956 assert!(revise.dry_run);
957 }
958
959 #[test]
960 fn test_revise_parse_reference() {

Callers

nothing calls this directly

Calls 4

with_rewordMethod · 0.80
with_referenceMethod · 0.80
with_dry_runMethod · 0.45
with_messageMethod · 0.45

Tested by

no test coverage detected