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

Function test_insert_subcommand_variants

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

Source from the content-addressed store, hash-verified

583
584 #[test]
585 fn test_insert_subcommand_variants() {
586 // Just verify the enums compile correctly
587 let _ = InsertSubcommand::FromView(FromViewArgs {
588 from_view: "feature".to_string(),
589 to_view: Some("main".to_string()),
590 deps: true,
591 allow_conflicts: false,
592 dry_run: false,
593 });
594
595 let _ = InsertSubcommand::Tag(TagArgs {
596 tag_name: "v1.0.0".to_string(),
597 from_view: Some("feature".to_string()),
598 to_view: Some("main".to_string()),
599 deps: true,
600 allow_conflicts: false,
601 dry_run: false,
602 });
603
604 let _ = InsertSubcommand::Pick(PickArgs {
605 changes: vec!["abc123".to_string()],
606 to_view: None,
607 deps: true,
608 allow_conflicts: false,
609 });
610
611 let _ = InsertSubcommand::Preview(PreviewArgs {
612 from_view: "feature".to_string(),
613 to_view: None,
614 up_to_tag: None,
615 });
616 }
617
618 #[test]
619 fn test_from_view_args_defaults() {

Callers

nothing calls this directly

Calls 1

TagClass · 0.85

Tested by

no test coverage detected