MCPcopy Create free account
hub / github.com/nodejs/node / testRegexpNoMatch

Method testRegexpNoMatch

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

Source from the content-addressed store, hash-verified

678 self._VerifyMock(os.path.join('out', 'Release', 'd7'), '--flag', 'run.js')
679
680 def testRegexpNoMatch(self):
681 self._WriteTestInput(V8_JSON)
682 self._MockCommand(['.'], ['x\nRichaards: 1.234\nDeltaBlue: 10657567\ny\n'])
683 self.assertEqual(1, self._CallMain())
684 self._VerifyResults('test', 'score', [
685 {'name': 'DeltaBlue', 'results': [10657567.0], 'stddev': ''},
686 ])
687 self._VerifyErrors(
688 ['Regexp "^Richards: (.+)$" did not match for test test/Richards.'])
689 self._VerifyMock(
690 os.path.join('out', 'x64.release', 'd7'), '--flag', 'run.js')
691
692 def testFilterInvalidRegexp(self):
693 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