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

Source from the content-addressed store, hash-verified

715
716 #[test]
717 fn test_change_cmd_clone() {
718 let cmd = ChangeCmd::new()
719 .with_identifier("ABC")
720 .with_format(ChangeFormat::Json);
721 let cloned = cmd.clone();
722
723 assert_eq!(cmd.identifier, cloned.identifier);
724 assert_eq!(cmd.format, cloned.format);
725 }
726
727 #[test]
728 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