(self)
| 585 | |
| 586 | |
| 587 | def testOneRunStdDevRegExp(self): |
| 588 | test_input = dict(V8_JSON) |
| 589 | test_input['stddev_regexp'] = r'^%s-stddev: (.+)$' |
| 590 | self._WriteTestInput(test_input) |
| 591 | self._MockCommand(['.'], ['Richards: 1.234\nRichards-stddev: 0.23\n' |
| 592 | 'DeltaBlue: 10657567\nDeltaBlue-stddev: 106\n']) |
| 593 | self.assertEqual(0, self._CallMain()) |
| 594 | self._VerifyResults('test', 'score', [ |
| 595 | {'name': 'Richards', 'results': [1.234], 'stddev': '0.23'}, |
| 596 | {'name': 'DeltaBlue', 'results': [10657567.0], 'stddev': '106'}, |
| 597 | ]) |
| 598 | self._VerifyErrors([]) |
| 599 | self._VerifyMock( |
| 600 | os.path.join('out', 'x64.release', 'd7'), '--flag', 'run.js') |
| 601 | |
| 602 | def testTwoRunsStdDevRegExp(self): |
| 603 | test_input = dict(V8_JSON) |
nothing calls this directly
no test coverage detected