MCPcopy Index your code
hub / github.com/RustPython/RustPython / report_start

Method report_start

Lib/doctest.py:1286–1297  ·  view source on GitHub ↗

Report that the test runner is about to process the given example. (Only displays a message if verbose=True)

(self, out, test, example)

Source from the content-addressed store, hash-verified

1284 #/////////////////////////////////////////////////////////////////
1285
1286 def report_start(self, out, test, example):
1287 """
1288 Report that the test runner is about to process the given
1289 example. (Only displays a message if verbose=True)
1290 """
1291 if self._verbose:
1292 if example.want:
1293 out('Trying:\n' + _indent(example.source) +
1294 'Expecting:\n' + _indent(example.want))
1295 else:
1296 out('Trying:\n' + _indent(example.source) +
1297 'Expecting nothing\n')
1298
1299 def report_success(self, out, test, example, got):
1300 """

Callers 1

__runMethod · 0.95

Calls 1

_indentFunction · 0.85

Tested by

no test coverage detected