()
| 213 | check_transform(ipt2.EscapedCommand, case) |
| 214 | |
| 215 | def test_find_help(): |
| 216 | for case in [SIMPLE_HELP, DETAILED_HELP, MAGIC_HELP, HELP_IN_EXPR]: |
| 217 | check_find(ipt2.HelpEnd, case) |
| 218 | |
| 219 | tf = check_find(ipt2.HelpEnd, HELP_CONTINUED_LINE) |
| 220 | nt.assert_equal(tf.q_line, 1) |
| 221 | nt.assert_equal(tf.q_col, 3) |
| 222 | |
| 223 | tf = check_find(ipt2.HelpEnd, HELP_MULTILINE) |
| 224 | nt.assert_equal(tf.q_line, 1) |
| 225 | nt.assert_equal(tf.q_col, 8) |
| 226 | |
| 227 | # ? in a comment does not trigger help |
| 228 | check_find(ipt2.HelpEnd, (["foo # bar?\n"], None, None), match=False) |
| 229 | # Nor in a string |
| 230 | check_find(ipt2.HelpEnd, (["foo = '''bar?\n"], None, None), match=False) |
| 231 | |
| 232 | def test_transform_help(): |
| 233 | tf = ipt2.HelpEnd((1, 0), (1, 9)) |
nothing calls this directly
no test coverage detected