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

Function test_parse_empty_string

tests/test_parsing.py:41–55  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

39
40
41def test_parse_empty_string(parser) -> None:
42 line = ""
43 statement = parser.parse(line)
44 assert statement == ""
45 assert statement.args == statement
46 assert statement.raw == line
47 assert statement.command == ""
48 assert statement.arg_list == []
49 assert not statement.multiline_command
50 assert statement.terminator == ""
51 assert statement.suffix == ""
52 assert statement.redirector == ""
53 assert statement.redirect_to == ""
54 assert statement.command_and_args == line
55 assert statement.argv == statement.arg_list
56
57
58def test_parse_empty_string_default(default_parser) -> None:

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…