(parser)
| 785 | |
| 786 | |
| 787 | def test_parse_command_only_quoted_args(parser) -> None: |
| 788 | line = 'l "/tmp/directory with spaces/doit.sh"' |
| 789 | partial_statement = parser.parse_command_only(line) |
| 790 | assert partial_statement.command == "shell" |
| 791 | assert partial_statement.args == 'ls -al "/tmp/directory with spaces/doit.sh"' |
| 792 | assert partial_statement.raw == line |
| 793 | assert not partial_statement.multiline_command |
| 794 | assert partial_statement.command_and_args == line.replace("l", "shell ls -al") |
| 795 | |
| 796 | |
| 797 | def test_parse_command_only_unclosed_quote(parser) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…