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

Method testBuildbotWithTotal

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

Source from the content-addressed store, hash-verified

640 self._VerifyMock(os.path.join('out', 'Release', 'd7'), '--flag', 'run.js')
641
642 def testBuildbotWithTotal(self):
643 test_input = dict(V8_JSON)
644 test_input['total'] = True
645 self._WriteTestInput(test_input)
646 self._MockCommand(['.'], ['Richards: 1.234\nDeltaBlue: 10657567\n'],
647 on_bots=True)
648 mock.patch.object(
649 run_perf.Platform, 'ReadBuildConfig',
650 mock.MagicMock(return_value={'is_android': False})).start()
651 self.assertEqual(0, self._CallMain())
652 self._VerifyResults('test', 'score', [
653 {'name': 'Richards', 'results': [1.234], 'stddev': ''},
654 {'name': 'DeltaBlue', 'results': [10657567.0], 'stddev': ''},
655 {'name': 'Total', 'results': [3626.491097190233], 'stddev': ''},
656 ])
657 self._VerifyErrors([])
658 self._VerifyMock(os.path.join('out', 'Release', 'd7'), '--flag', 'run.js')
659
660 def testBuildbotWithTotalAndErrors(self):
661 test_input = dict(V8_JSON)

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected