Lines Matching refs:result
80 let result = Opt::try_parse_from(["test", "badcmd", "-i", "-v"]);
81 assert!(result.is_err());
83 let result = Opt::try_parse_from(["test", "add", "--badoption"]);
84 assert!(result.is_err());
86 let result = Opt::try_parse_from(["test"]);
87 assert!(result.is_err());
312 let result = Opt::try_parse_from(["test"]);
313 assert!(result.is_err());
315 let result = Opt::try_parse_from(["test", "list"]).unwrap();
316 assert_eq!(Opt::List, result);
318 let result = Opt::try_parse_from(["test", "l"]).unwrap();
319 assert_eq!(Opt::List, result);
321 let result = Opt::try_parse_from(["test", "daemon"]);
322 assert!(result.is_err());
324 let result = Opt::try_parse_from(["test", "daemon", "start"]).unwrap();
325 assert_eq!(Opt::Daemon(DaemonCommand::Start), result);
327 let result = Opt::try_parse_from(["test", "d", "start"]).unwrap();
328 assert_eq!(Opt::Daemon(DaemonCommand::Start), result);