(self)
| 640 | self._VerifyMock(os.path.join('out', 'Release', 'd7'), '--flag', 'run.js') |
| 641 | |
| 642 | def testBuildbotWithTotal(self): |
| 643 | test_input = dict(V8_JSON) |
| 644 | test_input['total'] = True |
| 645 | self._WriteTestInput(test_input) |
| 646 | self._MockCommand(['.'], ['Richards: 1.234\nDeltaBlue: 10657567\n'], |
| 647 | on_bots=True) |
| 648 | mock.patch.object( |
| 649 | run_perf.Platform, 'ReadBuildConfig', |
| 650 | mock.MagicMock(return_value={'is_android': False})).start() |
| 651 | self.assertEqual(0, self._CallMain()) |
| 652 | self._VerifyResults('test', 'score', [ |
| 653 | {'name': 'Richards', 'results': [1.234], 'stddev': ''}, |
| 654 | {'name': 'DeltaBlue', 'results': [10657567.0], 'stddev': ''}, |
| 655 | {'name': 'Total', 'results': [3626.491097190233], 'stddev': ''}, |
| 656 | ]) |
| 657 | self._VerifyErrors([]) |
| 658 | self._VerifyMock(os.path.join('out', 'Release', 'd7'), '--flag', 'run.js') |
| 659 | |
| 660 | def testBuildbotWithTotalAndErrors(self): |
| 661 | test_input = dict(V8_JSON) |
nothing calls this directly
no test coverage detected