()
| 902 | |
| 903 | #[test] |
| 904 | fn test_help_eval_arg() { |
| 905 | tester_with(vec![DoNothingCommand::new()]) |
| 906 | .run(r#"topic = "Do_Nothing": HELP topic"#) |
| 907 | .expect_prints([""]) |
| 908 | .expect_output([ |
| 909 | CapturedOut::SetColor(Some(TITLE_COLOR), None), |
| 910 | CapturedOut::Print(" DO_NOTHING sample$".to_owned()), |
| 911 | CapturedOut::SetColor(None, None), |
| 912 | ]) |
| 913 | .expect_prints([ |
| 914 | "", |
| 915 | " This is the blurb.", |
| 916 | "", |
| 917 | " First paragraph of the extended description.", |
| 918 | "", |
| 919 | " Second paragraph of the extended description.", |
| 920 | "", |
| 921 | ]) |
| 922 | .expect_var("topic", "Do_Nothing") |
| 923 | .check(); |
| 924 | } |
| 925 | |
| 926 | #[test] |
| 927 | fn test_help_prefix_search() { |
nothing calls this directly
no test coverage detected