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

Function test_change_cmd_clone

atomic-cli/src/commands/change/tests.rs:686–694  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

684
685 #[test]
686 fn test_change_cmd_clone() {
687 let cmd = ChangeCmd::new()
688 .with_identifier("ABC")
689 .with_format(ChangeFormat::Json);
690 let cloned = cmd.clone();
691
692 assert_eq!(cmd.identifier, cloned.identifier);
693 assert_eq!(cmd.format, cloned.format);
694 }
695
696 #[test]
697 fn test_change_identifier_clone() {

Callers

nothing calls this directly

Calls 3

with_identifierMethod · 0.80
with_formatMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected