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

Method testAndroid

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

Source from the content-addressed store, hash-verified

746 '--flag', 'run.js', timeout=70)
747
748 def testAndroid(self):
749 self._WriteTestInput(V8_JSON)
750 mock.patch('run_perf.AndroidPlatform.PreExecution').start()
751 mock.patch('run_perf.AndroidPlatform.PostExecution').start()
752 mock.patch('run_perf.AndroidPlatform.PreTests').start()
753 mock.patch('run_perf.find_build_directory').start()
754 mock.patch(
755 'run_perf.AndroidPlatform.Run',
756 return_value=(Output(stdout='Richards: 1.234\nDeltaBlue: 10657567\n'),
757 NULL_OUTPUT)).start()
758 mock.patch('testrunner.local.android.Driver', autospec=True).start()
759 mock.patch(
760 'run_perf.Platform.ReadBuildConfig',
761 return_value={'is_android': True}).start()
762 self.assertEqual(0, self._CallMain('--arch', 'arm'))
763 self._VerifyResults('test', 'score', [
764 {'name': 'Richards', 'results': [1.234], 'stddev': ''},
765 {'name': 'DeltaBlue', 'results': [10657567.0], 'stddev': ''},
766 ])
767
768 def testTwoRuns_Trybot(self):
769 test_input = dict(V8_JSON)

Callers

nothing calls this directly

Calls 5

_WriteTestInputMethod · 0.95
_CallMainMethod · 0.95
_VerifyResultsMethod · 0.95
OutputClass · 0.90
startMethod · 0.45

Tested by

no test coverage detected