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

Function test_insert_subcommand_variants

atomic-cli/src/commands/insert.rs:765–796  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

763
764 #[test]
765 fn test_insert_subcommand_variants() {
766 // Just verify the enums compile correctly
767 let _ = InsertSubcommand::View(ViewArgs {
768 from_view: "feature".to_string(),
769 to_view: Some("main".to_string()),
770 deps: true,
771 allow_conflicts: false,
772 dry_run: false,
773 });
774
775 let _ = InsertSubcommand::Tag(TagArgs {
776 tag_name: "v1.0.0".to_string(),
777 from_view: Some("feature".to_string()),
778 to_view: Some("main".to_string()),
779 deps: true,
780 allow_conflicts: false,
781 dry_run: false,
782 });
783
784 let _ = InsertSubcommand::Change(ChangeArgs {
785 changes: vec!["abc123".to_string()],
786 to_view: None,
787 deps: true,
788 allow_conflicts: false,
789 });
790
791 let _ = InsertSubcommand::Preview(PreviewArgs {
792 from_view: "feature".to_string(),
793 to_view: None,
794 up_to_tag: None,
795 });
796 }
797
798 #[test]
799 fn test_view_args_defaults() {

Callers

nothing calls this directly

Calls 3

ViewClass · 0.85
TagClass · 0.85
ChangeClass · 0.85

Tested by

no test coverage detected