Lines Matching refs:utils

5 use super::utils;
88 utils::assert_eq(EXPECTED, err.to_string());
115 utils::assert_output(cmd, "example --help", LAST_ARG_REQ_MULT, false);
171 utils::assert_output(cmd, "flamegraph --help", LAST_ARG_USAGE, false);
176 let m = utils::complex_app().try_get_matches_from(vec!["clap-test", "subcmd", "-h"]);
184 let m = utils::complex_app().try_get_matches_from(vec!["clap-test", "subcmd", "--help"]);
192 let m = utils::complex_app().try_get_matches_from(vec!["clap-test", "help", "subcmd"]);
232 utils::assert_output(utils::complex_app(), "clap-test --help", HELP, false);
255 utils::assert_output(cmd.clone(), "clap-test -h", AFTER_HELP, false);
256 utils::assert_output(cmd, "clap-test --help", AFTER_HELP, false);
297 utils::assert_output(cmd.clone(), "clap-test --help", AFTER_LONG_HELP, false);
298 utils::assert_output(cmd, "clap-test -h", AFTER_HELP, false);
334 utils::assert_output(cmd, "ctest help subcmd multi", MULTI_SC_HELP, false);
348 utils::assert_output(cmd, "ctest --help", DEFAULT_HELP, false);
394 utils::assert_output(cmd, "test --help", WRAPPED_HELP, false);
440 utils::assert_output(cmd, "test --help", UNWRAPPED_HELP, false);
504 utils::assert_output(cmd, "test --help", WRAPPED_HELP, false);
526 let a = utils::complex_app();
527 utils::assert_output(a, "clap-test subcmd --help", SC_HELP, false);
564 utils::assert_output(cmd, "ctest --help", ISSUE_626_CUTOFF, false);
600 utils::assert_output(cmd, "ctest --help", HIDE_POS_VALS, false);
628 utils::assert_output(cmd, "ctest --help", HIDE_POS_VALS, false);
676 utils::assert_output(app, "ctest --help", POS_VALS_HELP, false);
699 utils::assert_output(app, "ctest --help", POS_VALS_HELP, false);
734 utils::assert_output(cmd, "ctest --help", ISSUE_626_PANIC, false);
770 utils::assert_output(cmd, "ctest --help", FINAL_WORD_WRAPPING, false);
799 utils::assert_output(cmd, "ctest --help", WRAPPING_NEWLINE_CHARS, false);
828 utils::assert_output(cmd, "ctest --help", WRAPPING_NEWLINE_CHARS, false);
855 utils::assert_output(cmd, "Example update --help", EXPECTED, false);
876 utils::assert_output(cmd, "ctest --help", OLD_NEWLINE_CHARS, false);
887 utils::assert_output(cmd, "ctest --help", OLD_NEWLINE_CHARS, false);
916 utils::assert_output(app1, "ctest --help", ISSUE_688, false);
927 utils::assert_output(app2, "ctest --help", ISSUE_688, false);
937 utils::assert_output(app3, "ctest --help", ISSUE_688, false);
992 utils::assert_output(cmd, "myapp --help", ISSUE_702, false);
1024 utils::assert_output(cmd, "myapp --help", LONG_ABOUT, false);
1047 utils::assert_output(cmd, "rg --help", RIPGREP_USAGE, false);
1105 utils::assert_output(cmd, "rg --help", RIPGREP_USAGE, false);
1133 utils::assert_output(cmd, "prog --help", SC_NEGATES_REQS, false);
1153 utils::assert_output(cmd, "prog --help", HIDDEN_ARGS, false);
1183 utils::assert_output(cmd, "prog --help", ARGS_NEGATE_SC, false);
1207 utils::assert_output(cmd, "prog --help", ISSUE_1046_HIDDEN_SCS, false);
1231 .help_template(utils::FULL_TEMPLATE)
1233 utils::assert_output(cmd, "ctest --help", ISSUE_777, false);
1251 utils::assert_output(cmd.clone(), "test --help", OVERRIDE_HELP_SHORT, false);
1252 utils::assert_output(cmd, "test -H", OVERRIDE_HELP_SHORT, false);
1270 utils::assert_output(cmd.clone(), "test --hell", OVERRIDE_HELP_LONG, false);
1271 utils::assert_output(cmd, "test -h", OVERRIDE_HELP_LONG, false);
1289 utils::assert_output(cmd.clone(), "test --help", OVERRIDE_HELP_ABOUT, false);
1290 utils::assert_output(cmd, "test -h", OVERRIDE_HELP_ABOUT, false);
1350 utils::assert_output(cmd, "last --help", LAST_ARG, false);
1380 utils::assert_output(cmd, "last --help", LAST_ARG_REQ, false);
1417 utils::assert_output(cmd, "last --help", LAST_ARG_REQ_SC, false);
1453 utils::assert_output(cmd, "last --help", LAST_ARG_SC, false);
1474 utils::assert_output(app1, "default --help", HIDE_DEFAULT_VAL, false);
1482 utils::assert_output(app2, "default --help", HIDE_DEFAULT_VAL, false);
1505 utils::assert_output(app1, "default --help", ESCAPED_DEFAULT_VAL, false);
1599 utils::assert_output(cmd, "test --help", REQUIRE_DELIM_HELP, false);
1640 utils::assert_output(cmd, "test --help", CUSTOM_HELP_SECTION, false);
1719 utils::assert_output(cmd, "test --help", MULTIPLE_CUSTOM_HELP_SECTIONS, false);
1774 utils::assert_output(cmd, "test -h", CUSTOM_HELP_SECTION_HIDDEN_ARGS, false);
1798 utils::assert_output(cmd, "ctest foo --help", ISSUE_897, false);
1819 utils::assert_output(cmd, "ctest foo -h", ISSUE_897_SHORT, false);
1850 utils::assert_output(cmd, "demo -h", ISSUE_1364, false);
1875 utils::assert_output(cmd, "ctest -h", ISSUE_1487, false);
2001 utils::assert_output(cmd, "prog --help", ISSUE_1642, false);
2037 utils::assert_output(cmd.clone(), "myapp help help", HELP_SUBCMD_HELP, false);
2054 utils::assert_output(
2085 utils::assert_output(cmd, "myapp help", HELP, false);
2108 utils::assert_output(cmd, "myapp help help", HELP_HELP, false);
2134 utils::assert_output(cmd, "myapp help subcmd", HELP_SUBCMD, false);
2157 utils::assert_output(cmd, "myapp help subcmd multi", HELP_SUB_SUBCMD, false);
2190 utils::assert_output(cmd, "order --help", OPTION_USAGE_ORDER, false);
2212 utils::assert_output(
2249 utils::assert_output(cmd, "deno --help", USAGE_WITH_GROUP, false);
2274 utils::assert_output(cmd, "test --help", CUSTOM_HEADING_POS, false);
2294 utils::assert_output(cmd, "test --help", ONLY_CUSTOM_HEADING_OPTS_NO_ARGS, false);
2314 utils::assert_output(cmd, "test --help", ONLY_CUSTOM_HEADING_POS_NO_ARGS, false);
2327 utils::assert_output(
2348 utils::assert_output(
2372 utils::assert_output(
2398 utils::assert_output(
2420 utils::assert_output(
2445 utils::assert_output(
2468 utils::assert_output(
2494 utils::assert_output(
2594 utils::assert_output(
2636 utils::assert_output(
2691 utils::assert_output(cmd, "parent test --help", EXPECTED, false);
2714 utils::assert_output(cmd, "parent help test", EXPECTED, false);
2741 utils::assert_eq(EXPECTED, help);
2757 utils::assert_output(cmd, "ctest subcmd --help", MULTI_SC_HELP, false);
2773 utils::assert_output(cmd, "ctest subcmd --help", MULTI_SC_HELP, false);
2781 utils::assert_output(cmd, "ctest --help", MULTI_SC_HELP, false);