Home
last modified time | relevance | path

Searched refs:errors (Results 1 – 20 of 20) sorted by relevance

/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DAbstractFlickerRunnerDecorator.kt30 val errors = mutableListOf<Throwable>() in doValidateConstructor() constant
31 inner?.doValidateConstructor()?.let { errors.addAll(it) } in doValidateConstructor()
32 return errors in doValidateConstructor()
36 val errors = mutableListOf<Throwable>() in doValidateInstanceMethods() constant
37 inner?.doValidateInstanceMethods()?.let { errors.addAll(it) } in doValidateInstanceMethods()
38 return errors in doValidateInstanceMethods()
DLegacyFlickerDecorator.kt58 val errors = super.doValidateConstructor().toMutableList() in doValidateConstructor() constant
61 errors.add( in doValidateConstructor()
68 return errors in doValidateConstructor()
72 val errors = super.doValidateInstanceMethods().toMutableList() in doValidateInstanceMethods() constant
78 errors.add( in doValidateInstanceMethods()
87 errors.add(IllegalArgumentException("Method ${method.name}() should not be static")) in doValidateInstanceMethods()
90 errors.add(IllegalArgumentException("Method ${method.name}() should be public")) in doValidateInstanceMethods()
93 errors.add( in doValidateInstanceMethods()
101 errors.add( in doValidateInstanceMethods()
107 return errors in doValidateInstanceMethods()
DLegacyFlickerJUnit4ClassRunner.kt128 val errors = mutableListOf<Throwable>() in <lambda>() constant
129 flickerDecorator.doValidateInstanceMethods().let { errors.addAll(it) } in <lambda>()
130 flickerDecorator.doValidateConstructor().let { errors.addAll(it) } in <lambda>()
132 if (errors.isNotEmpty()) { in <lambda>()
133 throw InvalidTestClassError(testClass.javaClass, errors) in <lambda>()
245 val errors = emptyList<Throwable>() in <lambda>() constant
246 super.validateInstanceMethods(errors) in <lambda>()
247 return errors in <lambda>()
253 val errors = emptyList<Throwable>() in <lambda>() constant
254 super.validateInstanceMethods(errors) in <lambda>()
[all …]
DFlickerServiceJUnit4ClassRunner.kt72 val errors = mutableListOf<Throwable>() in <lambda>() constant
73 flickerDecorator.doValidateInstanceMethods().let { errors.addAll(it) } in <lambda>()
74 flickerDecorator.doValidateConstructor().let { errors.addAll(it) } in <lambda>()
76 if (errors.isNotEmpty()) { in <lambda>()
77 throw InvalidTestClassError(testClass, errors) in <lambda>()
186 val errors = mutableListOf<Throwable>() in <lambda>() constant
187 super.validateInstanceMethods(errors) in <lambda>()
188 return errors in <lambda>()
DFlickerServiceDecorator.kt179 val errors = super.doValidateInstanceMethods().toMutableList() in <lambda>() constant
183 errors.add(IllegalArgumentException("Only one @Test annotated method is supported")) in <lambda>()
192 errors.add( in <lambda>()
200 errors.add( in <lambda>()
210 errors.add( in <lambda>()
229 errors.add( in <lambda>()
243 return errors in <lambda>()
/platform_testing/libraries/runner/src/main/java/platform/test/runner/parameterized/
DAndroidParameterizedRunner.java48 protected void validateConstructor(List<Throwable> errors) { in validateConstructor() argument
49 validateOnlyOneConstructor(errors); in validateConstructor()
51 validateZeroArgConstructor(errors); in validateConstructor()
61 protected void validateFields(List<Throwable> errors) { in validateFields() argument
62 super.validateFields(errors); in validateFields()
63 ParameterizedRunnerDelegate.validateFields(errors, getTestClass()); in validateFields()
DRobolectricParameterizedRunner.java57 protected void validateConstructor(List<Throwable> errors) { in validateConstructor() argument
58 validateOnlyOneConstructor(errors); in validateConstructor()
60 validateZeroArgConstructor(errors); in validateConstructor()
70 protected void validateFields(List<Throwable> errors) { in validateFields() argument
71 super.validateFields(errors); in validateFields()
72 ParameterizedRunnerDelegate.validateFields(errors, getTestClass()); in validateFields()
81 protected void validateConstructor(List<Throwable> errors) { in getHelperTestRunner()
82 RobolectricParameterizedRunner.this.validateOnlyOneConstructor(errors); in getHelperTestRunner()
DParameterizedRunnerDelegate.java138 static void validateFields(List<Throwable> errors, TestClass testClass) { in validateFields() argument
147 errors.add( in validateFields()
164 errors.add( in validateFields()
169 errors.add( in validateFields()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DSystemHealthRule.java108 StringBuilder errors = new StringBuilder();
122 if (crash != null) errors.append(crash);
125 return errors.length() != 0
126 ? "Current time: " + new Date(System.currentTimeMillis()) + "\n" + errors
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DLongevityClassRunner.java280 List<Throwable> errors = new ArrayList<>(); in evaluate() local
288 errors.add(e); in evaluate()
291 errors.addAll(invokeAndCollectErrors(mAfterClassMethods, mTarget)); in evaluate()
294 MultipleFailureException.assertEmpty(errors); in evaluate()
302 List<Throwable> errors = new ArrayList<>(); in invokeAndCollectErrors() local
307 errors.add(e); in invokeAndCollectErrors()
310 return errors; in invokeAndCollectErrors()
/platform_testing/tests/bettertogether/betocq/function_tests/
Dnearbyconnections_function_test.py19 from mobly.snippet import errors
42 with asserts.assert_raises(errors.ApiError):
44 with asserts.assert_raises(errors.ApiError):
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/runner/
DTraceMonitorRule.kt89 val errors = in doStopMonitors() constant
100 errors.firstOrNull { it.isFailure }?.exceptionOrNull()?.let { throw it } in doStopMonitors()
/platform_testing/libraries/rdroidtest/
DAndroid.bp49 // Without this flag we get linker errors saying to add it. See
/platform_testing/tests/bettertogether/quickstart/performance_test/
Dnc_base_test.py27 from mobly.controllers.android_device_lib import errors
71 except errors.Error:
/platform_testing/libraries/health/runners/longevity/platform/samples/
DAndroid.bp45 "echo \"\x1b[0;31mFailed to parse profile $$file. See above for errors.\x1b[0m\" " +
/platform_testing/libraries/flicker/src/android/tools/flicker/
DFlickerServiceResultsCollector.kt368 val errors = mutableListOf<String>() in <lambda>() constant
378 result.assertionErrors.forEach { errors.add(it.message) } in <lambda>()
/platform_testing/libraries/health/runners/longevity/platform/tests/
DAndroid.bp45 "echo \"\x1b[0;31mFailed to parse profile $$file. See above for errors.\x1b[0m\" " +
/platform_testing/tests/bettertogether/betocq/
Dnc_base_test.py30 from mobly.controllers.android_device_lib import errors
82 except errors.Error:
/platform_testing/tests/health/scenarios/tests/
DAndroid.bp45 "echo \"\x1b[0;31mFailed to parse profile $$file. See above for errors.\x1b[0m\" " +
/platform_testing/libraries/health/runners/longevity/
DREADME.md69 * `quitter <bool>` - quit the suite if any test errors are encountered.