MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_help_eval_arg

Function test_help_eval_arg

std/src/help.rs:904–924  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

tester_withFunction · 0.85
expect_varMethod · 0.80
checkMethod · 0.45
expect_printsMethod · 0.45
expect_outputMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected