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

Method testNestedSuite

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

Source from the content-addressed store, hash-verified

550 'out', 'x64.release', 'd7'), '--flag', 'run.js')
551
552 def testNestedSuite(self):
553 self._WriteTestInput(V8_NESTED_SUITES_JSON)
554 self._MockCommand(['delta_blue', 'sub/leaf', 'richards'],
555 ['DeltaBlue: 200\n',
556 'Simple: 1 ms.\n',
557 'Simple: 2 ms.\n',
558 'Simple: 3 ms.\n',
559 'Richards: 100\n',
560 'Richards: 50\n'])
561 self.assertEqual(0, self._CallMain())
562 self.assertListEqual(sorted([
563 {'units': 'score',
564 'graphs': ['test', 'Richards'],
565 'results': [50.0, 100.0],
566 'stddev': ''},
567 {'units': 'ms',
568 'graphs': ['test', 'Sub', 'Leaf'],
569 'results': [3.0, 2.0, 1.0],
570 'stddev': ''},
571 {'units': 'score',
572 'graphs': ['test', 'DeltaBlue'],
573 'results': [200.0],
574 'stddev': ''},
575 ], key=SORT_KEY), sorted(self._LoadResults()['traces'], key=SORT_KEY))
576 self._VerifyErrors([])
577 self._VerifyMockMultiple(
578 (os.path.join('out', 'x64.release', 'd7'), '--flag', 'run.js'),
579 (os.path.join('out', 'x64.release', 'd7'), '--flag', 'run.js'),
580 (os.path.join('out', 'x64.release', 'd8'), '--flag', 'run.js'),
581 (os.path.join('out', 'x64.release', 'd8'), '--flag', 'run.js'),
582 (os.path.join('out', 'x64.release', 'd8'), '--flag', 'run.js'),
583 (os.path.join('out', 'x64.release', 'd8'),
584 '--flag', '--flag2', 'run.js'))
585
586
587 def testOneRunStdDevRegExp(self):

Callers

nothing calls this directly

Calls 8

_WriteTestInputMethod · 0.95
_MockCommandMethod · 0.95
_CallMainMethod · 0.95
_LoadResultsMethod · 0.95
_VerifyErrorsMethod · 0.95
_VerifyMockMultipleMethod · 0.95
sortedFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected