()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected