/external/tensorflow/tensorflow/lite/testing/ |
D | tflite_driver_test.cc | 27 std::unique_ptr<TestRunner> runner(new TfLiteDriver()); in TEST() local 29 runner->SetModelBaseDir("tensorflow/lite"); in TEST() 30 runner->LoadModel("testdata/multi_add.bin"); in TEST() 31 ASSERT_TRUE(runner->IsValid()); in TEST() 33 ASSERT_THAT(runner->GetInputs(), ElementsAre(0, 1, 2, 3)); in TEST() 34 ASSERT_THAT(runner->GetOutputs(), ElementsAre(5, 6)); in TEST() 37 runner->ReshapeTensor(i, "1,2,2,1"); in TEST() 39 ASSERT_TRUE(runner->IsValid()); in TEST() 41 runner->AllocateTensors(); in TEST() 43 runner->SetInput(0, "0.1,0.2,0.3,0.4"); in TEST() [all …]
|
D | test_runner_test.cc | 47 ConcreteTestRunner runner; in TEST() local 48 EXPECT_EQ(runner.GetFullPath("test.bin"), "test.bin"); in TEST() 49 runner.SetModelBaseDir("/tmp"); in TEST() 50 EXPECT_EQ(runner.GetFullPath("test.bin"), "/tmp/test.bin"); in TEST() 54 ConcreteTestRunner runner; in TEST() local 55 EXPECT_EQ(runner.GetInvocationId(), ""); in TEST() 56 runner.SetInvocationId("X"); in TEST() 57 EXPECT_EQ(runner.GetInvocationId(), "X"); in TEST() 61 ConcreteTestRunner runner; in TEST() local 62 EXPECT_TRUE(runner.IsValid()); in TEST() [all …]
|
D | generate_testspec.cc | 92 TestRunner* runner) { in GenerateTestSpecFromRunner() argument 115 auto inputs = runner->GetInputs(); in GenerateTestSpecFromRunner() 117 runner->SetInput(inputs[j], input_values[j]); in GenerateTestSpecFromRunner() 118 if (!runner->IsValid()) { in GenerateTestSpecFromRunner() 119 std::cerr << runner->GetErrorMessage() << std::endl; in GenerateTestSpecFromRunner() 124 runner->Invoke(); in GenerateTestSpecFromRunner() 125 if (!runner->IsValid()) { in GenerateTestSpecFromRunner() 126 std::cerr << runner->GetErrorMessage() << std::endl; in GenerateTestSpecFromRunner() 135 auto outputs = runner->GetOutputs(); in GenerateTestSpecFromRunner() 137 stream << " output: \"" << runner->ReadOutput(outputs[j]) << "\"\n"; in GenerateTestSpecFromRunner() [all …]
|
D | tf_driver_test.cc | 91 std::unique_ptr<TfDriver> runner( in TEST() local 95 runner->LoadModel( in TEST() 97 EXPECT_TRUE(runner->IsValid()) << runner->GetErrorMessage(); in TEST() 99 ASSERT_THAT(runner->GetInputs(), ElementsAre(0, 1, 2, 3)); in TEST() 100 ASSERT_THAT(runner->GetOutputs(), ElementsAre(0, 1)); in TEST() 103 runner->ReshapeTensor(i, "1,2,2,1"); in TEST() 105 ASSERT_TRUE(runner->IsValid()); in TEST() 107 runner->SetInput(0, "0.1,0.2,0.3,0.4"); in TEST() 108 runner->SetInput(1, "0.001,0.002,0.003,0.004"); in TEST() 109 runner->SetInput(2, "0.001,0.002,0.003,0.004"); in TEST() [all …]
|
/external/vogar/test/vogar/target/junit4/ |
D | TestRunnerJUnit4Test.java | 20 import org.junit.runner.RunWith; 35 TestRunner runner = testRunnerRule.createTestRunner(); in testRunner_ChangeDefaultLocaleTest() local 36 runner.run(); in testRunner_ChangeDefaultLocaleTest() 49 TestRunner runner = testRunnerRule.createTestRunner(); in testRunner_SimpleTest2() local 50 runner.run(); in testRunner_SimpleTest2() 64 TestRunner runner = testRunnerRule.createTestRunner("--skipPast", failingTestName); in testRunner_SkipPast() local 66 runner.run(); in testRunner_SkipPast() 78 TestRunner runner = testRunnerRule.createTestRunner("--skipPast", failingTestName); in testRunner_SkipPastAll() local 80 runner.run(); in testRunner_SkipPastAll() 88 TestRunner runner = testRunnerRule.createTestRunner(args); in testRunner_SimpleTest2_OneMethod() local [all …]
|
/external/vogar/test/vogar/target/junit3/ |
D | TestRunnerJUnit3Test.java | 20 import org.junit.runner.RunWith; 38 TestRunner runner = testRunnerRule.createTestRunner(); in testConstructor_JUnit3Test_RunnerType_JUNIT() local 39 runner.run(); in testConstructor_JUnit3Test_RunnerType_JUNIT() 49 TestRunner runner = testRunnerRule.createTestRunner(); in testRunner_ChangeDefaultLocaleTest() local 50 runner.run(); in testRunner_ChangeDefaultLocaleTest() 63 TestRunner runner = testRunnerRule.createTestRunner(); in testRunner_SimpleTest2() local 64 runner.run(); in testRunner_SimpleTest2() 78 TestRunner runner = testRunnerRule.createTestRunner("--skipPast", failingTestName); in testRunner_SkipPast() local 80 runner.run(); in testRunner_SkipPast() 91 TestRunner runner = testRunnerRule.createTestRunner("--skipPast", failingTestName); in testRunner_SkipPastAll() local [all …]
|
/external/openscreen/platform/impl/ |
D | task_runner_unittest.cc | 75 auto runner = std::make_unique<TaskRunnerImpl>( in Create() local 77 fake_waiter->SetTaskRunner(runner.get()); in Create() 78 return runner; in Create() 91 TaskRunnerImpl runner(&fake_clock.now); in TEST() local 94 runner.PostTask([&ran_tasks] { ran_tasks += "1"; }); in TEST() 95 runner.RequestStopSoon(); in TEST() 97 runner.RunUntilStopped(); in TEST() 103 TaskRunnerImpl runner(&fake_clock.now); in TEST() local 105 std::thread t([&runner] { runner.RunUntilStopped(); }); in TEST() 111 runner.PostTaskWithDelay(task_one, kDelayTime); in TEST() [all …]
|
/external/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/test/ |
D | test_runner.py | 13 runner = unittest2.TextTestRunner() 14 self.assertFalse(runner.failfast) 15 self.assertFalse(runner.buffer) 16 self.assertEqual(runner.verbosity, 1) 17 self.assertTrue(runner.descriptions) 18 self.assertEqual(runner.resultclass, unittest2.TextTestResult) 26 runner = unittest2.TextTestRunner(stream=StringIO(), failfast=True, 29 runner._makeResult = lambda: result 30 runner.run(Test('testFoo')) 40 originalRegisterResult = unittest2.runner.registerResult [all …]
|
/external/tensorflow/tensorflow/lite/micro/kernels/ |
D | kernel_runner.cc | 79 KernelRunner* runner = reinterpret_cast<KernelRunner*>(context->impl_); in GetTensor() local 80 TFLITE_DCHECK(runner != nullptr); in GetTensor() 82 return &runner->tensors_[tensor_index]; in GetTensor() 88 KernelRunner* runner = reinterpret_cast<KernelRunner*>(context->impl_); in GetEvalTensor() local 89 TFLITE_DCHECK(runner != nullptr); in GetEvalTensor() 92 reinterpret_cast<TfLiteEvalTensor*>(runner->allocator_->AllocateTemp( in GetEvalTensor() 98 eval_tensor->data = runner->tensors_[tensor_index].data; in GetEvalTensor() 99 eval_tensor->dims = runner->tensors_[tensor_index].dims; in GetEvalTensor() 100 eval_tensor->type = runner->tensors_[tensor_index].type; in GetEvalTensor() 107 KernelRunner* runner = reinterpret_cast<KernelRunner*>(context->impl_); in AllocatePersistentBuffer() local [all …]
|
/external/expat/tests/ |
D | minicheck.c | 123 SRunner *runner = calloc(1, sizeof(SRunner)); in srunner_create() local 124 if (runner != NULL) { in srunner_create() 125 runner->suite = suite; in srunner_create() 127 return runner; in srunner_create() 151 handle_failure(SRunner *runner, int verbosity, const char *phase_info) { in handle_failure() argument 152 runner->nfailures++; in handle_failure() 160 srunner_run_all(SRunner *runner, int verbosity) { in srunner_run_all() argument 163 assert(runner != NULL); in srunner_run_all() 164 suite = runner->suite; in srunner_run_all() 169 runner->nchecks++; in srunner_run_all() [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | ReschedulerTest.java | 25 import org.junit.runner.RunWith; 34 private final Runner runner = new Runner(); field in ReschedulerTest 38 runner, 45 assertFalse(runner.ran); in runs() 47 assertFalse(runner.ran); in runs() 51 assertTrue(runner.ran); in runs() 56 assertFalse(runner.ran); in cancels() 58 assertFalse(runner.ran); in cancels() 63 assertFalse(runner.ran); in cancels() 69 assertFalse(runner.ran); in cancelPermanently() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
D | RobolectricTestRunnerMultiApiTest.java | 21 import org.junit.runner.Description; 22 import org.junit.runner.RunWith; 23 import org.junit.runner.notification.RunListener; 24 import org.junit.runner.notification.RunNotifier; 38 private RobolectricTestRunner runner; field in RobolectricTestRunnerMultiApiTest 72 runner = runnerOf(TestWithNoConfig.class); in createChildrenForEachSupportedApi() 73 assertThat(apisFor(runner.getChildren())).containsExactly( in createChildrenForEachSupportedApi() 79 runner = runnerOf(TestMethodWithNewestSdk.class); in withConfigSdkLatest_shouldUseLatestSupported() 80 assertThat(apisFor(runner.getChildren())).containsExactly(M); in withConfigSdkLatest_shouldUseLatestSupported() 85 runner = runnerOf(TestMethodWithSdkAndMinMax.class); in withConfigSdkAndMinMax_shouldUseMinMax() [all …]
|
/external/webrtc/rtc_base/synchronization/ |
D | mutex_unittest.cc | 155 LockRunner<Mutex, RawMutexLocker<Mutex>> runner; in TEST() local 156 StartThreads(threads, &runner); in TEST() 157 runner.SetExpectedThreadCount(kNumThreads); in TEST() 158 EXPECT_TRUE(runner.Run()); in TEST() 159 EXPECT_EQ(0, runner.shared_value()); in TEST() 164 LockRunner<Mutex, RawMutexTryLocker> runner; in TEST() local 165 StartThreads(threads, &runner); in TEST() 166 runner.SetExpectedThreadCount(kNumThreads); in TEST() 167 EXPECT_TRUE(runner.Run()); in TEST() 168 EXPECT_EQ(0, runner.shared_value()); in TEST() [all …]
|
/external/mockito/src/main/java/org/mockito/runners/ |
D | VerboseMockitoJUnitRunner.java | 8 import org.junit.runner.Description; 9 import org.junit.runner.Runner; 10 import org.junit.runner.manipulation.Filter; 11 import org.junit.runner.manipulation.Filterable; 12 import org.junit.runner.manipulation.NoTestsRemainException; 13 import org.junit.runner.notification.Failure; 14 import org.junit.runner.notification.RunListener; 15 import org.junit.runner.notification.RunNotifier; 30 private final InternalRunner runner; field in VerboseMockitoJUnitRunner 36 VerboseMockitoJUnitRunner(InternalRunner runner) { in VerboseMockitoJUnitRunner() argument [all …]
|
D | ConsoleSpammingMockitoJUnitRunner.java | 7 import org.junit.runner.Description; 8 import org.junit.runner.Runner; 9 import org.junit.runner.manipulation.Filter; 10 import org.junit.runner.manipulation.Filterable; 11 import org.junit.runner.manipulation.NoTestsRemainException; 12 import org.junit.runner.notification.Failure; 13 import org.junit.runner.notification.RunListener; 14 import org.junit.runner.notification.RunNotifier; 33 private final InternalRunner runner; field in ConsoleSpammingMockitoJUnitRunner 39 ConsoleSpammingMockitoJUnitRunner(MockitoLogger logger, InternalRunner runner) { in ConsoleSpammingMockitoJUnitRunner() argument [all …]
|
/external/mockito/src/main/java/org/mockito/junit/ |
D | MockitoJUnitRunner.java | 7 import org.junit.runner.Description; 8 import org.junit.runner.Runner; 9 import org.junit.runner.manipulation.Filter; 10 import org.junit.runner.manipulation.Filterable; 11 import org.junit.runner.manipulation.NoTestsRemainException; 12 import org.junit.runner.notification.RunNotifier; 150 private final InternalRunner runner; field in MockitoJUnitRunner 157 MockitoJUnitRunner(InternalRunner runner) throws InvocationTargetException { in MockitoJUnitRunner() argument 158 this.runner = runner; in MockitoJUnitRunner() 163 runner.run(notifier); in run() [all …]
|
/external/caliper/expectations/ |
D | knownfailures.txt | 12 "com.google.caliper.runner.StreamServiceTest", 13 "com.google.caliper.runner.WorkerProcessTest" 21 "com.google.caliper.runner.ExperimentingRunnerModuleTest" 33 "com.google.caliper.runner.AllocationInstrumentTest", 34 …"com.google.caliper.runner.BadUserCodeTest#testComplexNonDeterministicAllocation_noTrackAllocation… 35 …"com.google.caliper.runner.BadUserCodeTest#testComplexNonDeterministicAllocation_trackAllocations", 36 "com.google.caliper.runner.BadUserCodeTest#testNonDeterministicAllocation_noTrackAllocations", 37 "com.google.caliper.runner.BadUserCodeTest#testNonDeterministicAllocation_trackAllocations", 38 "com.google.caliper.runner.MalformedBenchmarksTest#noBenchmarkMethods" 44 "com.google.caliper.runner.ArbitraryMeasurmentInstrumentTest" [all …]
|
/external/mockito/src/main/java/org/mockito/internal/runners/ |
D | StrictRunner.java | 7 import org.junit.runner.Description; 8 import org.junit.runner.manipulation.Filter; 9 import org.junit.runner.manipulation.NoTestsRemainException; 10 import org.junit.runner.notification.RunNotifier; 18 private final InternalRunner runner; field in StrictRunner 25 public StrictRunner(InternalRunner runner, Class<?> testClass) { in StrictRunner() argument 26 this.runner = runner; in StrictRunner() 39 runner.run(notifier); in run() 54 return runner.getDescription(); in getDescription() 59 runner.filter(filter); in filter()
|
/external/python/cpython2/Lib/unittest/test/ |
D | test_runner.py | 145 runner = unittest.TextTestRunner() 146 self.assertFalse(runner.failfast) 147 self.assertFalse(runner.buffer) 148 self.assertEqual(runner.verbosity, 1) 149 self.assertTrue(runner.descriptions) 150 self.assertEqual(runner.resultclass, unittest.TextTestResult) 171 runner = unittest.TextTestRunner(stream=StringIO(), failfast=True, 174 runner._makeResult = lambda: result 175 runner.run(Test('testFoo')) 184 originalRegisterResult = unittest.runner.registerResult [all …]
|
/external/libnl/tests/ |
D | check-all.c | 25 SRunner *runner; in main() local 28 runner = srunner_create(main_suite()); in main() 32 srunner_add_suite(runner, make_nl_addr_suite()); in main() 33 srunner_add_suite(runner, make_nl_attr_suite()); in main() 34 srunner_add_suite(runner, make_nl_ematch_tree_clone_suite()); in main() 38 srunner_run_all(runner, CK_ENV); in main() 40 nfailed = srunner_ntests_failed(runner); in main() 41 srunner_free(runner); in main()
|
/external/junit/src/main/java/org/junit/runners/model/ |
D | RunnerBuilder.java | 9 import org.junit.runner.Description; 10 import org.junit.runner.OrderWith; 11 import org.junit.runner.Runner; 12 import org.junit.runner.manipulation.InvalidOrderingException; 13 import org.junit.runner.manipulation.Ordering; 70 Runner runner = runnerForClass(testClass); in safeRunnerForClass() local 71 if (runner != null) { in safeRunnerForClass() 72 configureRunner(runner); in safeRunnerForClass() 74 return runner; in safeRunnerForClass() 80 private void configureRunner(Runner runner) throws InvalidOrderingException { in configureRunner() argument [all …]
|
/external/libchrome/base/threading/ |
D | simple_thread_unittest.cc | 128 SetIntRunner runner(&stack_int, 7); in TEST() local 131 DelegateSimpleThread thread(&runner, "int_setter"); in TEST() 151 WaitEventRunner runner(&event); in TEST() local 152 DelegateSimpleThread thread(&runner, "event_waiter"); in TEST() 162 ControlledRunner runner; in TEST() local 166 DelegateSimpleThread thread(&runner, "non_joinable", options); in TEST() 175 runner.WaitUntilStarted(); in TEST() 182 std::unique_ptr<ControlledRunner> runner(new ControlledRunner); in TEST() local 187 new DelegateSimpleThread(runner.get(), "non_joinable", options)); in TEST() 190 runner->WaitUntilStarted(); in TEST() [all …]
|
/external/libchrome/base/ |
D | callback_helpers_unittest.cc | 38 base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count)); in TEST() local 48 base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count)); in TEST() local 49 c = runner.Release(); in TEST() 61 base::ScopedClosureRunner runner; in TEST() local 62 runner.ReplaceClosure(base::Bind(&Increment, &run_count_1)); in TEST() 63 runner.ReplaceClosure(base::Bind(&Increment, &run_count_2)); in TEST() 74 base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count_3)); in TEST() local 76 runner.RunAndReset(); in TEST() 85 std::unique_ptr<base::ScopedClosureRunner> runner( in TEST() local 87 base::ScopedClosureRunner runner2(std::move(*runner)); in TEST() [all …]
|
/external/autotest/client/common_lib/cros/network/ |
D | iw_runner_unittest.py | 612 runner = iw_runner.IwRunner(remote_host=host) 613 network = runner.wait_for_scan_result('wlan0', bsses=[test_iw_bss.bss]) 686 runner = iw_runner.IwRunner(remote_host=host) 687 networks = runner.wait_for_scan_result('wlan 0', 697 runner = iw_runner.IwRunner(remote_host=host) 699 runner.get_current_bssid(self.STATION_LINK_IFACE), 713 runner = iw_runner.IwRunner(remote_host=host) 715 runner.get_link_value(self.STATION_LINK_INFORMATION, 723 runner = iw_runner.IwRunner(remote_host=host) 725 runner.get_station_dump(self.STATION_DUMP_IFACE), [all …]
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/offline/ |
D | DownloadManagerTest.java | 43 import org.junit.runner.RunWith; 132 DownloadRunner runner = new DownloadRunner(uri1); in postDownloadRequest_downloads() local 133 TaskWrapper task = runner.postDownloadRequest().getTask(); in postDownloadRequest_downloads() 135 runner.getDownloader(0).unblock().assertReleased().assertStartCount(1); in postDownloadRequest_downloads() 137 runner.assertCreatedDownloaderCount(1); in postDownloadRequest_downloads() 144 DownloadRunner runner = new DownloadRunner(uri1); in postRemoveRequest_removes() local 145 TaskWrapper task = runner.postDownloadRequest().postRemoveRequest().getTask(); in postRemoveRequest_removes() 147 runner.getDownloader(1).unblock().assertReleased().assertStartCount(1); in postRemoveRequest_removes() 149 runner.assertCreatedDownloaderCount(2); in postRemoveRequest_removes() 156 DownloadRunner runner = new DownloadRunner(uri1); in downloadFails_retriesThenTaskFails() local [all …]
|