()
| 24 | |
| 25 | #[test] |
| 26 | fn test_parse_valid_path() { |
| 27 | let parser = make_extract_subcommand().to_options(); |
| 28 | |
| 29 | let result = parser.run_inner(&["extract", "/some/path"]); |
| 30 | |
| 31 | assert!(result.is_ok()); |
| 32 | match result.unwrap() { |
| 33 | Command::Extract { path, language } => { |
| 34 | assert_eq!(path, PathBuf::from("/some/path")); |
| 35 | assert!(language.is_none()); |
| 36 | } |
| 37 | _ => panic!("Expected Extract command"), |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | #[test] |
| 42 | fn test_parse_with_language() { |
nothing calls this directly
no test coverage detected