MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_parse_empty_string_default

Function test_parse_empty_string_default

tests/test_parsing.py:58–72  ·  view source on GitHub ↗
(default_parser)

Source from the content-addressed store, hash-verified

56
57
58def test_parse_empty_string_default(default_parser) -> None:
59 line = ""
60 statement = default_parser.parse(line)
61 assert statement == ""
62 assert statement.args == statement
63 assert statement.raw == line
64 assert statement.command == ""
65 assert statement.arg_list == []
66 assert not statement.multiline_command
67 assert statement.terminator == ""
68 assert statement.suffix == ""
69 assert statement.redirector == ""
70 assert statement.redirect_to == ""
71 assert statement.command_and_args == line
72 assert statement.argv == statement.arg_list
73
74
75@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…