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

Method testOneRun

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

Source from the content-addressed store, hash-verified

274 self.assertTupleEqual((expected, ), actual)
275
276 def testOneRun(self):
277 self._WriteTestInput(V8_JSON)
278 self._MockCommand(['.'], ['x\nRichards: 1.234\nDeltaBlue: 10657567\ny\n'])
279 self.assertEqual(0, self._CallMain())
280 self._VerifyResults('test', 'score', [
281 {'name': 'Richards', 'results': [1.234], 'stddev': ''},
282 {'name': 'DeltaBlue', 'results': [10657567.0], 'stddev': ''},
283 ])
284 self._VerifyRunnableDurations(1, 60)
285 self._VerifyErrors([])
286 self._VerifyMock(
287 os.path.join('out', 'x64.release', 'd7'), '--flag', 'run.js')
288
289 def testWarmup_OnEmpty(self):
290 warmup_cache = TEST_WORKSPACE / 'test_cache.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
joinMethod · 0.45

Tested by

no test coverage detected