MCPcopy Create free account
hub / github.com/circlefin/arc-node / _create_test

Method _create_test

scripts/md-exec.py:90–100  ·  view source on GitHub ↗
(self, cmd, expected_lines, line_num, timeout, expected_fail, options, strip_output, exit_check, empty_output)

Source from the content-addressed store, hash-verified

88 self.cli_options = cli_options or {}
89
90 def _create_test(self, cmd, expected_lines, line_num, timeout, expected_fail, options, strip_output, exit_check, empty_output):
91 # Reconstruct expected output preserving shell-like behavior.
92 # If there are expected lines, standard shell commands usually end with a newline.
93 # ["foo"] -> "foo\n"
94 # [""] -> "\n"
95 # [] -> ""
96 if expected_lines:
97 expected_str = "\n".join(expected_lines) + "\n"
98 else:
99 expected_str = ""
100 return ShellTest(cmd, expected_str, line_num, timeout, expected_fail, options.copy(), strip_output, exit_check, empty_output)
101
102 def _extract_heredoc_delimiter(self, cmd):
103 """Extract heredoc delimiter from a command if present.

Callers 1

parseMethod · 0.95

Calls 1

ShellTestClass · 0.85

Tested by

no test coverage detected