Home
last modified time | relevance | path

Searched full:testresult (Results 1 – 25 of 1750) sorted by relevance

12345678910>>...70

/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/time/
DDateUtilsFragmentTest.java72 final long testResult = DateUtils.getFragmentInDays(aCalendar, Calendar.MONTH); in testDaysOfMonthWithCalendar() local
73 assertEquals(days, testResult); in testDaysOfMonthWithCalendar()
78 final long testResult = DateUtils.getFragmentInDays(aDate, Calendar.MONTH); in testDaysOfMonthWithDate() local
81 assertEquals(cal.get(Calendar.DAY_OF_MONTH), testResult); in testDaysOfMonthWithDate() local
86 final long testResult = DateUtils.getFragmentInDays(aCalendar, Calendar.YEAR); in testDaysOfYearWithCalendar() local
87 assertEquals(aCalendar.get(Calendar.DAY_OF_YEAR), testResult); in testDaysOfYearWithCalendar() local
92 final long testResult = DateUtils.getFragmentInDays(aDate, Calendar.YEAR); in testDaysOfYearWithDate() local
95 assertEquals(cal.get(Calendar.DAY_OF_YEAR), testResult); in testDaysOfYearWithDate() local
112 long testResult = DateUtils.getFragmentInHours(aCalendar, Calendar.DATE); in testHoursOfDayWithCalendar() local
114 assertEquals(expectedValue, testResult); in testHoursOfDayWithCalendar()
[all …]
/external/rust/crates/memchr/src/tests/memchr/
Dprop.rs16 use quickcheck::TestResult;
24 fn qc_memchr_matches_naive(n1: u8, corpus: Vec<u8>) -> TestResult {
27 None => return TestResult::discard(),
30 TestResult::from_bool(expected == got)
33 fn qc_memrchr_matches_naive(n1: u8, corpus: Vec<u8>) -> TestResult {
36 None => return TestResult::discard(),
39 TestResult::from_bool(expected == got)
42 fn qc_memchr2_matches_naive(n1: u8, n2: u8, corpus: Vec<u8>) -> TestResult {
45 None => return TestResult::discard(),
48 TestResult::from_bool(expected == got)
[all …]
/external/cronet/base/test/launcher/
Dtest_result.cc54 TestResult::TestResult() : status(TEST_UNKNOWN) { in TestResult() function in base::TestResult
57 TestResult::~TestResult() = default;
59 TestResult::TestResult(const TestResult& other) = default;
60 TestResult::TestResult(TestResult&& other) = default;
61 TestResult& TestResult::operator=(const TestResult& other) = default;
62 TestResult& TestResult::operator=(TestResult&& other) = default;
64 std::string TestResult::StatusAsString() const { in StatusAsString()
91 std::string TestResult::GetTestName() const { in GetTestName()
97 std::string TestResult::GetTestCaseName() const { in GetTestCaseName()
103 void TestResult::AddLink(const std::string& name, const std::string& url) { in AddLink()
[all …]
Dtest_results_tracker.cc52 void Add(const TestResult& result) { in Add()
57 case TestResult::TEST_SUCCESS: in Add()
59 case TestResult::TEST_FAILURE: in Add()
62 case TestResult::TEST_EXCESSIVE_OUTPUT: in Add()
63 case TestResult::TEST_FAILURE_ON_EXIT: in Add()
64 case TestResult::TEST_TIMEOUT: in Add()
65 case TestResult::TEST_CRASH: in Add()
66 case TestResult::TEST_UNKNOWN: in Add()
67 case TestResult::TEST_NOT_RUN: in Add()
70 case TestResult::TEST_SKIPPED: in Add()
[all …]
/external/libchrome/base/test/launcher/
Dtest_result.cc49 TestResult::TestResult() : status(TEST_UNKNOWN) { in TestResult() function in base::TestResult
52 TestResult::~TestResult() = default;
54 TestResult::TestResult(const TestResult& other) = default;
55 TestResult::TestResult(TestResult&& other) = default;
56 TestResult& TestResult::operator=(const TestResult& other) = default;
57 TestResult& TestResult::operator=(TestResult&& other) = default;
59 std::string TestResult::StatusAsString() const { in StatusAsString()
84 std::string TestResult::GetTestName() const { in GetTestName()
90 std::string TestResult::GetTestCaseName() const { in GetTestCaseName()
Dtest_results_tracker.cc56 void Add(const TestResult& result) { in Add()
61 case TestResult::TEST_SUCCESS: in Add()
63 case TestResult::TEST_FAILURE: in Add()
66 case TestResult::TEST_EXCESSIVE_OUTPUT: in Add()
67 case TestResult::TEST_FAILURE_ON_EXIT: in Add()
68 case TestResult::TEST_TIMEOUT: in Add()
69 case TestResult::TEST_CRASH: in Add()
70 case TestResult::TEST_UNKNOWN: in Add()
73 case TestResult::TEST_SKIPPED: in Add()
98 typedef std::map<std::string, std::vector<TestResult> > TestCaseMap; in ~TestResultsTracker()
[all …]
Dtest_result.h48 struct TestResult { struct
60 TestResult(); argument
61 ~TestResult();
63 TestResult(const TestResult& other);
64 TestResult(TestResult&& other);
65 TestResult& operator=(const TestResult& other); argument
66 TestResult& operator=(TestResult&& other); argument
/external/armnn/src/armnnTestUtils/
DUnitTests.hpp43 … CompareTestResultIfSupported(const std::string& testName, const LayerTestResult<T, n>& testResult) in CompareTestResultIfSupported() argument
46 CHECK_MESSAGE(testNameIndicatesUnsupported != testResult.m_Supported, in CompareTestResultIfSupported()
48 if (testResult.m_Supported) in CompareTestResultIfSupported()
50 auto result = CompareTensors(testResult.m_ActualData, in CompareTestResultIfSupported()
51 testResult.m_ExpectedData, in CompareTestResultIfSupported()
52 testResult.m_ActualShape, in CompareTestResultIfSupported()
53 testResult.m_ExpectedShape, in CompareTestResultIfSupported()
54 testResult.m_CompareBoolean); in CompareTestResultIfSupported()
60 …esultIfSupported(const std::string& testName, const std::vector<LayerTestResult<T, n>>& testResult) in CompareTestResultIfSupported() argument
63 for (unsigned int i = 0; i < testResult.size(); ++i) in CompareTestResultIfSupported()
[all …]
/external/testng/src/main/java/org/testng/reporters/
DXMLSuiteResultWriter.java129 for (ITestResult testResult : sortedResults) { in addTestResults()
130 addTestResult(xmlBuffer, testResult); in addTestResults()
150 private void addTestResult(XMLStringBuffer xmlBuffer, ITestResult testResult) { in addTestResult() argument
151 Properties attribs = getTestResultAttributes(testResult); in addTestResult()
152 attribs.setProperty(XMLReporterConfig.ATTR_STATUS, getStatusString(testResult.getStatus())); in addTestResult()
154 addTestMethodParams(xmlBuffer, testResult); in addTestResult()
155 addTestResultException(xmlBuffer, testResult); in addTestResult()
156 addTestResultOutput(xmlBuffer, testResult); in addTestResult()
158 addTestResultAttributes(xmlBuffer, testResult); in addTestResult()
177 private Properties getTestResultAttributes(ITestResult testResult) { in getTestResultAttributes() argument
[all …]
/external/testng/src/main/java/org/testng/internal/
DInvoker.java168 ITestResult testResult= new TestResult(testClass, in invokeConfigurations() local
195 …handleConfigurationSkip(tm, testResult, configurationAnnotation, currentTestMethod, instance, suit… in invokeConfigurations()
209 testResult.setParameters(parameters); in invokeConfigurations()
213 runConfigurationListeners(testResult, true /* before */); in invokeConfigurations()
216 parameters, testResult); in invokeConfigurations()
219 testResult.setEndMillis(System.currentTimeMillis()); in invokeConfigurations()
220 runConfigurationListeners(testResult, false /* after */); in invokeConfigurations()
239 …handleConfigurationFailure(ex, tm, testResult, configurationAnnotation, currentTestMethod, instanc… in invokeConfigurations()
241 …handleConfigurationFailure(ex, tm, testResult, configurationAnnotation, currentTestMethod, instanc… in invokeConfigurations()
247 * Marks the current <code>TestResult</code> as skipped and invokes the listeners.
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_builtins_test.cpp38 struct TestResult { struct
39 TestResult(spv_result_t in_validation_result = SPV_SUCCESS, in TestResult() argument
59 const char*, const char*, TestResult>>;
62 const char*, const char*, TestResult>>;
65 const char*, const char*, TestResult>>;
69 const char*, const char*, const char*, TestResult>>;
74 const char*, const char*, TestResult>>;
162 const TestResult& test_result = std::get<5>(GetParam()); in TEST_P()
191 const TestResult& test_result = std::get<7>(GetParam()); in TEST_P()
222 const TestResult& test_result = std::get<8>(GetParam()); in TEST_P()
[all …]
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_builtins_test.cpp38 struct TestResult { struct
39 TestResult(spv_result_t in_validation_result = SPV_SUCCESS, in TestResult() function
59 const char*, const char*, TestResult>>;
62 const char*, const char*, TestResult>>;
65 const char*, const char*, TestResult>>;
69 const char*, const char*, const char*, TestResult>>;
74 const char*, const char*, TestResult>>;
162 const TestResult& test_result = std::get<5>(GetParam()); in TEST_P()
191 const TestResult& test_result = std::get<7>(GetParam()); in TEST_P()
222 const TestResult& test_result = std::get<8>(GetParam()); in TEST_P()
[all …]
/external/angle/third_party/spirv-tools/src/test/val/
Dval_builtins_test.cpp38 struct TestResult { struct
39 TestResult(spv_result_t in_validation_result = SPV_SUCCESS, in TestResult() argument
59 const char*, const char*, TestResult>>;
62 const char*, const char*, TestResult>>;
65 const char*, const char*, TestResult>>;
69 const char*, const char*, const char*, TestResult>>;
74 const char*, const char*, TestResult>>;
162 const TestResult& test_result = std::get<5>(GetParam()); in TEST_P()
191 const TestResult& test_result = std::get<7>(GetParam()); in TEST_P()
222 const TestResult& test_result = std::get<8>(GetParam()); in TEST_P()
[all …]
/external/testng/src/main/java/org/testng/remote/strprotocol/
DRemoteTestListener.java39 public void onTestStart(ITestResult testResult) { in onTestStart() argument
43 trm= new TestResultMessage(m_suite.getName(), m_xmlTest.getName(), testResult); in onTestStart()
46 trm= new TestResultMessage(m_currentTestContext, testResult); in onTestStart()
57 public void onTestFailedButWithinSuccessPercentage(ITestResult testResult) { in onTestFailedButWithinSuccessPercentage() argument
59 … m_sender.sendMessage(new TestResultMessage(m_suite.getName(), m_xmlTest.getName(), testResult)); in onTestFailedButWithinSuccessPercentage()
62 m_sender.sendMessage(new TestResultMessage(m_currentTestContext, testResult)); in onTestFailedButWithinSuccessPercentage()
67 public void onTestFailure(ITestResult testResult) { in onTestFailure() argument
69 … m_sender.sendMessage(new TestResultMessage(m_suite.getName(), m_xmlTest.getName(), testResult)); in onTestFailure()
72 m_sender.sendMessage(new TestResultMessage(m_currentTestContext, testResult)); in onTestFailure()
77 public void onTestSkipped(ITestResult testResult) { in onTestSkipped() argument
[all …]
/external/cronet/testing/scripts/rust/
Dtest_results_unittests.py9 from test_results import TestResult
15 a1 = TestResult('foo', 'PASS', 'FAIL')
16 a2 = TestResult('foo', 'PASS', 'FAIL')
17 b = TestResult('bar', 'PASS', 'FAIL')
18 c = TestResult('foo', 'FAIL', 'FAIL')
19 d = TestResult('foo', 'PASS', 'PASS')
27 pass_expected_repr = repr(TestResult('foo', 'PASS'))
31 self.assertIn('TestResult', pass_expected_repr)
34 fail_expected_repr = repr(TestResult('foo', 'PASS', 'FAIL'))
38 self.assertIn('TestResult', fail_expected_repr)
[all …]
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/
DBaseAutoGlitchActivity.java47 protected ArrayList<TestResult> mTestResults = new ArrayList<TestResult>();
128 protected static class TestResult { class in BaseAutoGlitchActivity
139 public TestResult(int testIndex, in TestResult() method in BaseAutoGlitchActivity.TestResult
153 int countDifferences(TestResult other) { in countDifferences()
170 public String comparePassed(TestResult passed) { in comparePassed()
257 protected TestResult testCurrentConfigurations() throws InterruptedException { in testCurrentConfigurations()
299 TestResult testResult = new TestResult( in testCurrentConfigurations() local
389 testResult.setResult(result); in testCurrentConfigurations()
390 mTestResults.add(testResult); in testCurrentConfigurations()
392 return testResult; in testCurrentConfigurations()
[all …]
/external/rust/crates/quickcheck/src/
Dtester.rs112 pub fn quicktest<A>(&mut self, f: A) -> Result<u64, TestResult> in quicktest()
122 TestResult { status: Pass, .. } => n_tests_passed += 1, in quicktest()
123 TestResult { status: Discard, .. } => continue, in quicktest()
124 r @ TestResult { status: Fail, .. } => return Err(r), in quicktest()
188 /// All testable things must be capable of producing a `TestResult`.
190 pub struct TestResult { struct
204 impl TestResult { impl
206 pub fn passed() -> TestResult { in passed()
207 TestResult::from_bool(true) in passed()
211 pub fn failed() -> TestResult { in failed()
[all …]
/external/zxing/core/src/test/java/com/google/zxing/common/
DAbstractNegativeBlackBoxTestCase.java48 private final List<TestResult> testResults;
50 private static final class TestResult { class in AbstractNegativeBlackBoxTestCase
54 TestResult(int falsePositivesAllowed, float rotation) { in TestResult() method in AbstractNegativeBlackBoxTestCase.TestResult
75 testResults.add(new TestResult(falsePositivesAllowed, rotation)); in addTest()
92 TestResult testResult = testResults.get(x); in testBlackBox() local
93 if (!checkForFalsePositives(image, testResult.getRotation())) { in testBlackBox()
103 TestResult testResult = testResults.get(x); in testBlackBox() local
105 totalAllowed += testResult.getFalsePositivesAllowed(); in testBlackBox()
115 TestResult testResult = testResults.get(x); in testBlackBox() local
117 (int) testResult.getRotation(), falsePositives[x], imageFiles.size(), in testBlackBox()
[all …]
/external/rust/crates/criterion/src/stats/univariate/
Dbootstrap.rs7 use quickcheck::TestResult;
12 fn mean(size: u8, start: u8, nresamples: u8) -> TestResult {
22 return TestResult::discard();
28 TestResult::from_bool(
38 TestResult::discard()
44 fn mean_median(size: u8, start: u8, nresamples: u8) -> TestResult {
54 return TestResult::discard();
60 TestResult::from_bool(
75 TestResult::discard()
85 ) -> TestResult {
[all …]
/external/jsoncpp/src/test_lib_json/
Djsontest.cpp73 // class TestResult
76 TestResult::TestResult() { in TestResult() function in JsonTest::TestResult
83 void TestResult::setTestName(const Json::String& name) { name_ = name; } in setTestName()
85 TestResult& TestResult::addFailure(const char* file, unsigned int line, in addFailure()
110 void TestResult::addFailureInfo(const char* file, unsigned int line, in addFailureInfo()
122 TestResult& TestResult::popPredicateContext() { in popPredicateContext()
138 bool TestResult::failed() const { return !failures_.empty(); } in failed()
140 void TestResult::printFailure(bool printTestName) const { in printFailure()
167 Json::String TestResult::indentText(const Json::String& text, in indentText()
183 TestResult& TestResult::addToLastFailure(const Json::String& message) { in addToLastFailure()
[all …]
/external/tensorflow/tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/
DOvicClassifierTest.java46 private OvicClassificationResult testResult = null; field in OvicClassifierTest
97 testResult = classifier.classifyByteBuffer(testImage); in ovicClassifier_quantizedModelClassifySuccess()
98 assertCorrectTopK(testResult); in ovicClassifier_quantizedModelClassifySuccess()
104 testResult = classifier.classifyByteBuffer(testImage); in ovicClassifier_floatModelClassifySuccess()
105 assertCorrectTopK(testResult); in ovicClassifier_floatModelClassifySuccess()
111 testResult = classifier.classifyByteBuffer(lowResTestImage); in ovicClassifier_lowResModelClassifySuccess()
112 assertCorrectTopK(testResult); in ovicClassifier_lowResModelClassifySuccess()
118 testResult = classifier.classifyByteBuffer(testImage); in ovicClassifier_latencyNotNull()
119 assertThat(testResult.latencyNano).isNotNull(); in ovicClassifier_latencyNotNull()
129 testResult = classifier.classifyByteBuffer(testImage); in ovicClassifier_mismatchedInputResolutionFails()
[all …]
/external/testng/src/main/java/org/testng/internal/invokers/
DInvokedMethodListenerInvoker.java34 * @param testResult test result which should be passed to the listener method upon invocation
39 ITestResult testResult, ITestContext testContext) { in InvokedMethodListenerInvoker() argument
42 m_testResult = testResult; in InvokedMethodListenerInvoker()
76 void callMethod(LISTENER_TYPE listener, IInvokedMethod invokedMethod, ITestResult testResult, in callMethod() argument
83 ITestResult testResult, ITestContext testContext) { in callMethod() argument
84 listener.beforeInvocation(invokedMethod, testResult); in callMethod()
91 ITestResult testResult, ITestContext testContext) { in callMethod() argument
92 listener.beforeInvocation(invokedMethod, testResult, testContext); in callMethod()
99 ITestResult testResult, ITestContext testContext) { in callMethod() argument
100 listener.afterInvocation(invokedMethod, testResult); in callMethod()
[all …]
/external/python/cpython2/Lib/unittest/test/
Dtest_result.py11 # Note: there are not separate tests for TestResult.wasSuccessful(),
12 # TestResult.errors, TestResult.failures, TestResult.testsRun or
13 # TestResult.shouldStop because these only have meaning in terms of
14 # other TestResult methods.
21 result = unittest.TestResult()
33 # run should be aborted by setting the TestResult's shouldStop
36 result = unittest.TestResult()
51 result = unittest.TestResult()
72 result = unittest.TestResult()
93 result = unittest.TestResult()
[all …]
/external/google-cloud-java/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/
DTestResult.java28 * Protobuf enum {@code google.cloud.dialogflow.cx.v3.TestResult}
30 public enum TestResult implements com.google.protobuf.ProtocolMessageEnum { enum
109 public static TestResult valueOf(int value) { in valueOf()
117 public static TestResult forNumber(int value) { in forNumber()
130 public static com.google.protobuf.Internal.EnumLiteMap<TestResult> internalGetValueMap() { in internalGetValueMap()
134 private static final com.google.protobuf.Internal.EnumLiteMap<TestResult> internalValueMap =
135 new com.google.protobuf.Internal.EnumLiteMap<TestResult>() {
136 public TestResult findValueByNumber(int number) {
137 return TestResult.forNumber(number);
157 private static final TestResult[] VALUES = values();
[all …]
/external/google-cloud-java/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/
DTestResult.java28 * Protobuf enum {@code google.cloud.dialogflow.cx.v3beta1.TestResult}
30 public enum TestResult implements com.google.protobuf.ProtocolMessageEnum { enum
109 public static TestResult valueOf(int value) { in valueOf()
117 public static TestResult forNumber(int value) { in forNumber()
130 public static com.google.protobuf.Internal.EnumLiteMap<TestResult> internalGetValueMap() { in internalGetValueMap()
134 private static final com.google.protobuf.Internal.EnumLiteMap<TestResult> internalValueMap =
135 new com.google.protobuf.Internal.EnumLiteMap<TestResult>() {
136 public TestResult findValueByNumber(int number) {
137 return TestResult.forNumber(number);
159 private static final TestResult[] VALUES = values();
[all …]

12345678910>>...70