MCPcopy Create free account
hub / github.com/nodejs/node / testTwoRuns_SubRegexp

Method testTwoRuns_SubRegexp

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

Source from the content-addressed store, hash-verified

482 'out', 'x64.release', 'd7'), '--flag', 'run.js')
483
484 def testTwoRuns_SubRegexp(self):
485 test_input = dict(V8_JSON)
486 test_input['run_count'] = 2
487 del test_input['results_regexp']
488 test_input['tests'][0]['results_regexp'] = '^Richards: (.+)$'
489 test_input['tests'][1]['results_regexp'] = '^DeltaBlue: (.+)$'
490 self._WriteTestInput(test_input)
491 self._MockCommand(['.', '.'],
492 ['Richards: 100\nDeltaBlue: 200\n',
493 'Richards: 50\nDeltaBlue: 300\n'])
494 self.assertEqual(0, self._CallMain())
495 self._VerifyResults('test', 'score', [
496 {'name': 'Richards', 'results': [50.0, 100.0], 'stddev': ''},
497 {'name': 'DeltaBlue', 'results': [300.0, 200.0], 'stddev': ''},
498 ])
499 self._VerifyErrors([])
500 self._VerifyMock(os.path.join(
501 'out', 'x64.release', 'd7'), '--flag', 'run.js')
502
503 def testPerfectConfidenceRuns(self):
504 self._WriteTestInput(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