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

Function test_subcommand_push

atomic-cli/src/commands/stash.rs:636–655  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

634
635 #[test]
636 fn test_subcommand_push() {
637 let subcmd = StashSubcommand::Push {
638 message: Some("test".to_string()),
639 include_untracked: true,
640 keep: false,
641 };
642
643 match subcmd {
644 StashSubcommand::Push {
645 message,
646 include_untracked,
647 keep,
648 } => {
649 assert_eq!(message, Some("test".to_string()));
650 assert!(include_untracked);
651 assert!(!keep);
652 }
653 _ => panic!("Expected Push"),
654 }
655 }
656
657 #[test]
658 fn test_subcommand_pop() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected