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

Method testPerfectConfidenceRuns

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

Source from the content-addressed store, hash-verified

501 'out', 'x64.release', 'd7'), '--flag', 'run.js')
502
503 def testPerfectConfidenceRuns(self):
504 self._WriteTestInput(V8_JSON)
505 self._MockCommand(
506 ['.'], ['x\nRichards: 1.234\nDeltaBlue: 10657567\ny\n'] * 10)
507 self.assertEqual(0, self._CallMain('--confidence-level', '1'))
508 self._VerifyResults('test', 'score', [
509 {'name': 'Richards', 'results': [1.234] * 10, 'stddev': ''},
510 {'name': 'DeltaBlue', 'results': [10657567.0] * 10, 'stddev': ''},
511 ])
512 self._VerifyErrors([])
513 self._VerifyMock(os.path.join(
514 'out', 'x64.release', 'd7'), '--flag', 'run.js')
515
516 def testNoisyConfidenceRuns(self):
517 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