Home
last modified time | relevance | path

Searched refs:create_app (Results 1 – 3 of 3) sorted by relevance

/third_party/rust/crates/clap/clap_bench/benches/
D03_complex.rs7 macro_rules! create_app { macro
154 b.iter(|| create_app!().get_matches_from(vec![""])) in parse_complex()
160 b.iter(|| create_app!().get_matches_from(vec!["myprog", "-f"])) in parse_complex_with_flag()
166 b.iter(|| create_app!().get_matches_from(vec!["myprog", "-o", "option1"])) in parse_complex_with_opt()
172 b.iter(|| create_app!().get_matches_from(vec!["myprog", "arg1"])) in parse_complex_with_pos()
178 b.iter(|| create_app!().get_matches_from(vec!["myprog", "subcmd"])) in parse_complex_with_sc()
184 b.iter(|| create_app!().get_matches_from(vec!["myprog", "subcmd", "-f"])) in parse_complex_with_sc_flag()
190 b.iter(|| create_app!().get_matches_from(vec!["myprog", "subcmd", "-o", "option1"])) in parse_complex_with_sc_opt()
196 b.iter(|| create_app!().get_matches_from(vec!["myprog", "subcmd", "arg1"])) in parse_complex_with_sc_pos()
203 create_app!().get_matches_from(vec![ in parse_complex1()
[all …]
D02_simple.rs4 macro_rules! create_app { macro
17 c.bench_function("build_simple", |b| b.iter(|| create_app!())); in build_simple()
67 b.iter(|| create_app!().get_matches_from(vec!["myprog", "-f"])) in parse_simple_with_flag()
73 b.iter(|| create_app!().get_matches_from(vec!["myprog", "-o", "option1"])) in parse_simple_with_opt()
79 b.iter(|| create_app!().get_matches_from(vec!["myprog", "arg1"])) in parse_simple_with_pos()
85 b.iter(|| create_app!().get_matches_from(vec!["myprog", "-o", "option1", "-f", "arg1"])) in parse_simple_with_complex()
/third_party/rust/crates/clap/tests/builder/
Dtests.rs243 fn create_app() { in create_app() function