MCPcopy Index your code
hub / github.com/nodejs/node / testOneRunStdDevRegExp

Method testOneRunStdDevRegExp

deps/v8/tools/unittests/run_perf_test.py:587–600  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

585
586
587 def testOneRunStdDevRegExp(self):
588 test_input = dict(V8_JSON)
589 test_input['stddev_regexp'] = r'^%s-stddev: (.+)$'
590 self._WriteTestInput(test_input)
591 self._MockCommand(['.'], ['Richards: 1.234\nRichards-stddev: 0.23\n'
592 'DeltaBlue: 10657567\nDeltaBlue-stddev: 106\n'])
593 self.assertEqual(0, self._CallMain())
594 self._VerifyResults('test', 'score', [
595 {'name': 'Richards', 'results': [1.234], 'stddev': '0.23'},
596 {'name': 'DeltaBlue', 'results': [10657567.0], 'stddev': '106'},
597 ])
598 self._VerifyErrors([])
599 self._VerifyMock(
600 os.path.join('out', 'x64.release', 'd7'), '--flag', 'run.js')
601
602 def testTwoRunsStdDevRegExp(self):
603 test_input = dict(V8_JSON)

Callers

nothing calls this directly

Calls 7

_WriteTestInputMethod · 0.95
_MockCommandMethod · 0.95
_CallMainMethod · 0.95
_VerifyResultsMethod · 0.95
_VerifyErrorsMethod · 0.95
_VerifyMockMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected