| 928 | |
| 929 | #[test] |
| 930 | fn test_insert_subcommand_variants() { |
| 931 | // Just verify the enums compile correctly |
| 932 | let _ = InsertSubcommand::View(ViewArgs { |
| 933 | from_view: "feature".to_string(), |
| 934 | to_view: Some("main".to_string()), |
| 935 | deps: true, |
| 936 | allow_conflicts: false, |
| 937 | dry_run: false, |
| 938 | }); |
| 939 | |
| 940 | let _ = InsertSubcommand::Tag(TagArgs { |
| 941 | tag_name: "v1.0.0".to_string(), |
| 942 | from_view: Some("feature".to_string()), |
| 943 | to_view: Some("main".to_string()), |
| 944 | deps: true, |
| 945 | allow_conflicts: false, |
| 946 | dry_run: false, |
| 947 | }); |
| 948 | |
| 949 | let _ = InsertSubcommand::Change(ChangeArgs { |
| 950 | changes: vec!["abc123".to_string()], |
| 951 | to_view: None, |
| 952 | deps: true, |
| 953 | allow_conflicts: false, |
| 954 | }); |
| 955 | |
| 956 | let _ = InsertSubcommand::Preview(PreviewArgs { |
| 957 | from_view: "feature".to_string(), |
| 958 | to_view: None, |
| 959 | up_to_tag: None, |
| 960 | }); |
| 961 | } |
| 962 | |
| 963 | #[test] |
| 964 | fn test_view_args_defaults() { |