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

Method testBuildbot

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

Source from the content-addressed store, hash-verified

625 os.path.join('out', 'x64.release', 'd7'), '--flag', 'run.js')
626
627 def testBuildbot(self):
628 self._WriteTestInput(V8_JSON)
629 self._MockCommand(['.'], ['Richards: 1.234\nDeltaBlue: 10657567\n'],
630 on_bots=True)
631 mock.patch.object(
632 run_perf.Platform, 'ReadBuildConfig',
633 mock.MagicMock(return_value={'is_android': False})).start()
634 self.assertEqual(0, self._CallMain())
635 self._VerifyResults('test', 'score', [
636 {'name': 'Richards', 'results': [1.234], 'stddev': ''},
637 {'name': 'DeltaBlue', 'results': [10657567.0], 'stddev': ''},
638 ])
639 self._VerifyErrors([])
640 self._VerifyMock(os.path.join('out', 'Release', 'd7'), '--flag', 'run.js')
641
642 def testBuildbotWithTotal(self):
643 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