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

Method testOneRunWithTestFlags

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

Source from the content-addressed store, hash-verified

450 'd7'), '--flag', '--variant-b-flag', 'run.js'))
451
452 def testOneRunWithTestFlags(self):
453 test_input = dict(V8_JSON)
454 test_input['test_flags'] = ['2', 'test_name']
455 self._WriteTestInput(test_input)
456 self._MockCommand(['.'], ['Richards: 1.234\nDeltaBlue: 10657567'])
457 self.assertEqual(0, self._CallMain())
458 self._VerifyResults('test', 'score', [
459 {'name': 'Richards', 'results': [1.234], 'stddev': ''},
460 {'name': 'DeltaBlue', 'results': [10657567.0], 'stddev': ''},
461 ])
462 self._VerifyErrors([])
463 self._VerifyMock(os.path.join(
464 'out', 'x64.release', 'd7'), '--flag', 'run.js', '--', '2', 'test_name')
465
466 def testTwoRuns_Units_SuiteName(self):
467 test_input = dict(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