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

Function test_insert_subcommand_variants

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

Source from the content-addressed store, hash-verified

727
728 #[test]
729 fn test_insert_subcommand_variants() {
730 // Just verify the enums compile correctly
731 let _ = InsertSubcommand::View(ViewArgs {
732 from_view: "feature".to_string(),
733 to_view: Some("main".to_string()),
734 deps: true,
735 allow_conflicts: false,
736 dry_run: false,
737 });
738
739 let _ = InsertSubcommand::Tag(TagArgs {
740 tag_name: "v1.0.0".to_string(),
741 from_view: Some("feature".to_string()),
742 to_view: Some("main".to_string()),
743 deps: true,
744 allow_conflicts: false,
745 dry_run: false,
746 });
747
748 let _ = InsertSubcommand::Change(ChangeArgs {
749 changes: vec!["abc123".to_string()],
750 to_view: None,
751 deps: true,
752 allow_conflicts: false,
753 });
754
755 let _ = InsertSubcommand::Preview(PreviewArgs {
756 from_view: "feature".to_string(),
757 to_view: None,
758 up_to_tag: None,
759 });
760 }
761
762 #[test]
763 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