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

Function test_insert_subcommand_variants

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

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

TagClass · 0.85
ChangeClass · 0.85
ViewClass · 0.50

Tested by

no test coverage detected