| 901 | |
| 902 | #[test] |
| 903 | fn test_insert_subcommand_variants() { |
| 904 | // Just verify the enums compile correctly |
| 905 | let _ = InsertSubcommand::View(ViewArgs { |
| 906 | from_view: "feature".to_string(), |
| 907 | to_view: Some("main".to_string()), |
| 908 | deps: true, |
| 909 | allow_conflicts: false, |
| 910 | dry_run: false, |
| 911 | }); |
| 912 | |
| 913 | let _ = InsertSubcommand::Tag(TagArgs { |
| 914 | tag_name: "v1.0.0".to_string(), |
| 915 | from_view: Some("feature".to_string()), |
| 916 | to_view: Some("main".to_string()), |
| 917 | deps: true, |
| 918 | allow_conflicts: false, |
| 919 | dry_run: false, |
| 920 | }); |
| 921 | |
| 922 | let _ = InsertSubcommand::Change(ChangeArgs { |
| 923 | changes: vec!["abc123".to_string()], |
| 924 | to_view: None, |
| 925 | deps: true, |
| 926 | allow_conflicts: false, |
| 927 | }); |
| 928 | |
| 929 | let _ = InsertSubcommand::Preview(PreviewArgs { |
| 930 | from_view: "feature".to_string(), |
| 931 | to_view: None, |
| 932 | up_to_tag: None, |
| 933 | }); |
| 934 | } |
| 935 | |
| 936 | #[test] |
| 937 | fn test_view_args_defaults() { |