MCPcopy Create free account
hub / github.com/daipendency/daipendency / test_parse_valid_path

Function test_parse_valid_path

src/cli/extract.rs:26–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

make_extract_subcommandFunction · 0.85

Tested by

no test coverage detected