Home
last modified time | relevance | path

Searched refs:testcase (Results 1 – 25 of 1604) sorted by relevance

12345678910>>...65

/external/google-breakpad/src/processor/
Dstatic_address_map_unittest.cc54 for (int testcase = 0; testcase < kNumberTestCases; ++testcase) { in SetUp() local
55 testdata[testcase] = new int[testsize[testcase]]; in SetUp()
75 for (int testcase = 0; testcase < kNumberTestCases; ++testcase) { in SetUp() local
76 for (int data_item = 0; data_item < testsize[testcase]; ++data_item) { in SetUp()
78 sstream << "test " << testdata[testcase][data_item]; in SetUp()
79 addr_map[testcase].Store(testdata[testcase][data_item], sstream.str()); in SetUp()
81 map_data[testcase] = serializer.Serialize(addr_map[testcase], NULL); in SetUp()
82 test_map[testcase] = TestMap(map_data[testcase]); in SetUp()
93 void CompareRetrieveResult(int testcase, int target) { in CompareRetrieveResult() argument
102 found = addr_map[testcase].Retrieve(target, &entry, &address); in CompareRetrieveResult()
[all …]
Dstatic_map_unittest.cc142 int testcase = 0; in SetUp() local
145 map_data[testcase] = in SetUp()
146 serializer.Serialize(std_map[testcase], &size[testcase]); in SetUp()
147 test_map[testcase] = TestMap(map_data[testcase]); in SetUp()
148 ++testcase; in SetUp()
151 std_map[testcase].insert(std::make_pair(2, 8)); in SetUp()
152 map_data[testcase] = in SetUp()
153 serializer.Serialize(std_map[testcase], &size[testcase]); in SetUp()
154 test_map[testcase] = TestMap(map_data[testcase]); in SetUp()
155 ++testcase; in SetUp()
[all …]
/external/icu/icu4c/source/test/perf/unisetperf/
Dunisetperf.cpp138 Command(const UnicodeSetPerformanceTest &testcase) : testcase(testcase) {} in Command() argument
148 return testcase.countInputCodePoints+testcase.spanCount-1; in getOperationsPerIteration()
152 return testcase.spanCount; in getEventsPerIteration()
155 const UnicodeSetPerformanceTest &testcase; member in Command
160 Contains(const UnicodeSetPerformanceTest &testcase) : Command(testcase) { in Contains() argument
166 if(testcase.set.contains(c)) { in Contains()
170 if(set!=testcase.set) { in Contains()
175 static UPerfFunction* get(const UnicodeSetPerformanceTest &testcase) { in get() argument
176 return new Contains(testcase); in get()
179 const UnicodeSet &set=testcase.set; in call()
[all …]
/external/icu/icu4c/source/test/perf/utrie2perf/
Dutrie2perf.cpp99 Command(const UTrie2PerfTest &testcase) : testcase(testcase) {} in Command() argument
108 return testcase.countInputCodePoints; in getOperationsPerIteration()
113 const UTrie2PerfTest &testcase; member in Command
119 CheckFCD(const UTrie2PerfTest &testcase) : Command(testcase) {} in CheckFCD() argument
121 static UPerfFunction* get(const UTrie2PerfTest &testcase) { in get() argument
122 return new CheckFCD(testcase); in get()
126 qcResult=unorm_quickCheck(testcase.getBuffer(), testcase.getBufferLen(), in call()
139 CheckFCDAlwaysGet(const UTrie2PerfTest &testcase) : Command(testcase) {}
141 static UPerfFunction* get(const UTrie2PerfTest &testcase) {
142 return new CheckFCDAlwaysGet(testcase);
[all …]
/external/ltp/testcases/network/can/filter-tests/
Dcan_filter.c69 canid_t calc_id(int testcase) in calc_id() argument
73 if (testcase & 1) in calc_id()
75 if (testcase & 2) in calc_id()
81 canid_t calc_mask(int testcase) in calc_mask() argument
85 if (testcase > 15) in calc_mask()
88 if (testcase & 4) in calc_mask()
90 if (testcase & 8) in calc_mask()
104 int testcase; in main() local
142 for (testcase = 0; testcase < TC; testcase++) { in main()
144 rfilter.can_id = calc_id(testcase); in main()
[all …]
/external/ltp/testcases/kernel/syscalls/remap_file_pages/
Dremap_file_pages02.c118 } testcase[] = { variable
154 if (testcase[i].setupfunc in main()
155 && testcase[i].setupfunc(i) == -1) { in main()
164 (testcase[i].start, testcase[i].size, in main()
165 testcase[i].prot, testcase[i].pgoff, in main()
166 testcase[i].flags)); in main()
169 if (testcase[i].cleanfunc in main()
170 && testcase[i].cleanfunc(i) == -1) { in main()
178 && (TEST_ERRNO == testcase[i].exp_errno)) { in main()
182 testcase[i].exp_errval, in main()
[all …]
/external/v8/tools/testrunner/local/
Dtestsuite.py35 from ..objects import testcase
50 def FilterVariantsByTest(self, testcase): argument
52 if testcase.outcomes:
53 if statusfile.OnlyStandardVariant(testcase.outcomes):
55 if statusfile.OnlyFastVariants(testcase.outcomes):
59 def GetFlagSets(self, testcase, variant): argument
60 if testcase.outcomes and statusfile.OnlyFastVariants(testcase.outcomes):
102 def CommonTestName(self, testcase): argument
104 return testcase.path.replace("\\", "/")
106 return testcase.path
[all …]
/external/flatbuffers/tests/
Dgo_test.go308 type testcase struct {
313 testForOriginalValues := []testcase{
314 testcase{"Hp", func() bool { return monster.Hp() == 80 }},
315 testcase{"Mana", func() bool { return monster.Mana() == 150 }},
316 testcase{"Pos.X'", func() bool { return monster.Pos(nil).X() == float32(1.0) }},
317 testcase{"Pos.Y'", func() bool { return monster.Pos(nil).Y() == float32(2.0) }},
318 testcase{"Pos.Z'", func() bool { return monster.Pos(nil).Z() == float32(3.0) }},
319 testcase{"Pos.Test1'", func() bool { return monster.Pos(nil).Test1() == float64(3.0) }},
320 testcase{"Pos.Test2'", func() bool { return monster.Pos(nil).Test2() == int8(2) }},
321 testcase{"Pos.Test3.A", func() bool { return monster.Pos(nil).Test3(nil).A() == int16(5) }},
[all …]
/external/libevent/test/
Dregress_main.c190 basic_test_setup(const struct testcase_t *testcase) in basic_test_setup() argument
197 if (testcase->flags & TT_ENABLE_IOCP_FLAG) in basic_test_setup()
201 if (testcase->flags & TT_NEED_THREADS) { in basic_test_setup()
202 if (!(testcase->flags & TT_FORK)) in basic_test_setup()
215 if (testcase->flags & TT_NEED_SOCKETPAIR) { in basic_test_setup()
231 if (testcase->flags & TT_NEED_BASE) { in basic_test_setup()
232 if (testcase->flags & TT_LEGACY) in basic_test_setup()
239 if (testcase->flags & TT_ENABLE_IOCP_FLAG) { in basic_test_setup()
246 if (testcase->flags & TT_NEED_DNS) { in basic_test_setup()
252 if (testcase->flags & TT_NO_LOGS) in basic_test_setup()
[all …]
Dtinytest.c92 testcase_run_bare_(const struct testcase_t *testcase) in testcase_run_bare_() argument
96 if (testcase->setup) { in testcase_run_bare_()
97 env = testcase->setup->setup_fn(testcase); in testcase_run_bare_()
105 testcase->fn(env); in testcase_run_bare_()
108 if (testcase->setup) { in testcase_run_bare_()
109 if (testcase->setup->cleanup_fn(testcase, env) == 0) in testcase_run_bare_()
122 const struct testcase_t *testcase) in testcase_run_forked_() argument
148 commandname, verbosity_flag, group->prefix, testcase->name); in testcase_run_forked_()
189 test_r = testcase_run_bare_(testcase); in testcase_run_forked_()
224 const struct testcase_t *testcase) argument
[all …]
/external/icu/icu4c/source/test/perf/utfperf/
Dutfperf.cpp125 Command(const UtfPerformanceTest &testcase) in Command() argument
126 : testcase(testcase), in Command()
127 input(testcase.getBuffer()), inputLength(testcase.getBufferLen()), in Command()
129 cnv=ucnv_open(testcase.charset, &errorCode); in Command()
131 …fprintf(stderr, "error opening converter for \"%s\" - %s\n", testcase.charset, u_errorName(errorCo… in Command()
146 const UtfPerformanceTest &testcase; member in Command
156 Roundtrip(const UtfPerformanceTest &testcase) : Command(testcase) {} in Roundtrip() argument
158 static UPerfFunction* get(const UtfPerformanceTest &testcase) { in get() argument
159 Roundtrip * t = new Roundtrip(testcase); in get()
183 pInterLimit=intermediate+testcase.chunkLength; in call()
[all …]
/external/ltp/testcases/kernel/timers/timer_create/
Dtimer_create04.c80 int testcase[6] = { variable
88 int TST_TOTAL = ARRAY_SIZE(testcase);
116 TST_TOTAL = sizeof(testcase) / sizeof(testcase[0]); in main()
122 testcase[4] = EINVAL; in main()
123 testcase[5] = EINVAL; in main()
125 testcase[4] = EFAULT; in main()
126 testcase[5] = EFAULT; in main()
163 if (TEST_RETURN == -1 && TEST_ERRNO == testcase[i]) { in main()
169 testcase[i], strerror(testcase[i])); in main()
/external/ltp/testcases/kernel/syscalls/swapoff/
Dswapoff02.c54 } testcase[] = { variable
74 if (testcase[i].setup) in main()
75 testcase[i].setup(); in main()
77 TEST(ltp_syscall(__NR_swapoff, testcase[i].path)); in main()
79 if (testcase[i].cleanup) in main()
80 testcase[i].cleanup(); in main()
83 && (TEST_ERRNO == testcase[i].exp_errno)) { in main()
87 testcase[i].exp_errval, in main()
88 testcase[i].err_desc); in main()
94 testcase[i].exp_errno, in main()
[all …]
/external/ltp/testcases/kernel/timers/clock_gettime/
Dclock_gettime03.c80 int testcase[6] = { variable
88 int TST_TOTAL = ARRAY_SIZE(testcase);
111 testcase[4] = EINVAL; in main()
112 testcase[5] = EINVAL; in main()
114 testcase[4] = EFAULT; in main()
115 testcase[5] = EFAULT; in main()
138 if (TEST_RETURN == -1 && TEST_ERRNO == testcase[i]) { in main()
146 testcase[i], strerror(testcase[i]), in main()
/external/ltp/testcases/kernel/syscalls/sysfs/
Dsysfs05.c88 } testcase[] = { variable
95 int TST_TOTAL = ARRAY_SIZE(testcase);
114 && (TEST_ERRNO == testcase[i].exp_errno)) { in main()
118 testcase[i].exp_errval, in main()
119 testcase[i].err_desc); in main()
124 testcase[i].exp_errno, in main()
125 testcase[i].exp_errval, TEST_ERRNO); in main()
Dsysfs06.c89 } testcase[] = { variable
96 int TST_TOTAL = ARRAY_SIZE(testcase);
118 && (TEST_ERRNO == testcase[i].exp_errno)) { in main()
122 testcase[i].exp_errval, in main()
123 testcase[i].err_desc); in main()
128 testcase[i].exp_errno, in main()
129 testcase[i].exp_errval, TEST_ERRNO); in main()
/external/ltp/testcases/kernel/syscalls/reboot/
Dreboot02.c97 } testcase[] = { variable
138 && (TEST_ERRNO == testcase[i].exp_errno)) { in main()
142 testcase[i].exp_errval, in main()
143 testcase[i].err_desc); in main()
148 testcase[i].exp_errno, in main()
149 testcase[i].exp_errval, TEST_ERRNO); in main()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatRegressionTest.java327 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, double myNumber) { in checkNBSPPatternRtNum() argument
335 errln("FAIL: " + testcase +" - failed to parse. " + e.toString()); in checkNBSPPatternRtNum()
339 errln("FAIL: "+testcase+": formatted "+myNumber+", parsed into "+aNumber+"\n"); in checkNBSPPatternRtNum()
341 logln("PASS: "+testcase+": formatted "+myNumber+", parsed into "+aNumber+"\n"); in checkNBSPPatternRtNum()
345 void checkNBSPPatternRT(String testcase, NumberFormat nf) { in checkNBSPPatternRT() argument
346 checkNBSPPatternRtNum(testcase, nf, 12345.); in checkNBSPPatternRT()
347 checkNBSPPatternRtNum(testcase, nf, -12345.); in checkNBSPPatternRT()
353 String testcase; in TestNBSPInPattern() local
356 testcase="ar_AE UNUM_CURRENCY"; in TestNBSPInPattern()
358 checkNBSPPatternRT(testcase, nf); in TestNBSPInPattern()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatRegressionTest.java330 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, double myNumber) { in checkNBSPPatternRtNum() argument
338 errln("FAIL: " + testcase +" - failed to parse. " + e.toString()); in checkNBSPPatternRtNum()
342 errln("FAIL: "+testcase+": formatted "+myNumber+", parsed into "+aNumber+"\n"); in checkNBSPPatternRtNum()
344 logln("PASS: "+testcase+": formatted "+myNumber+", parsed into "+aNumber+"\n"); in checkNBSPPatternRtNum()
348 void checkNBSPPatternRT(String testcase, NumberFormat nf) { in checkNBSPPatternRT() argument
349 checkNBSPPatternRtNum(testcase, nf, 12345.); in checkNBSPPatternRT()
350 checkNBSPPatternRtNum(testcase, nf, -12345.); in checkNBSPPatternRT()
356 String testcase; in TestNBSPInPattern() local
359 testcase="ar_AE UNUM_CURRENCY"; in TestNBSPInPattern()
361 checkNBSPPatternRT(testcase, nf); in TestNBSPInPattern()
[all …]
/external/ltp/testcases/kernel/timers/timer_delete/
Dtimer_delete03.c79 int testcase[] = { variable
84 int TST_TOTAL = ARRAY_SIZE(testcase);
103 if (TEST_RETURN == -1 && TEST_ERRNO == testcase[i]) { in main()
110 testcase[i], strerror(testcase[i])); in main()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DAstroTest.java366 double testcase[][] = {{2012, 5, 20 , 16 , 48, 59}, in TestMoonAge() local
380 for(int i=0; i<testcase.length; i++){ in TestMoonAge()
382 …String testString = "CASE["+i+"]: Year "+(int)testcase[i][0]+" Month "+(int)testcase[i][1]+" Day "+ in TestMoonAge()
383 … (int)testcase[i][2]+" Hour "+(int)testcase[i][3]+" Minutes "+(int)testcase[i][4]+ in TestMoonAge()
384 " Seconds "+(int)testcase[i][5]; in TestMoonAge()
385 …gc.set((int)testcase[i][0],(int)testcase[i][1]-1,(int)testcase[i][2],(int)testcase[i][3],(int)test… in TestMoonAge()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DAstroTest.java363 double testcase[][] = {{2012, 5, 20 , 16 , 48, 59}, in TestMoonAge() local
377 for(int i=0; i<testcase.length; i++){ in TestMoonAge()
379 …String testString = "CASE["+i+"]: Year "+(int)testcase[i][0]+" Month "+(int)testcase[i][1]+" Day "+ in TestMoonAge()
380 … (int)testcase[i][2]+" Hour "+(int)testcase[i][3]+" Minutes "+(int)testcase[i][4]+ in TestMoonAge()
381 " Seconds "+(int)testcase[i][5]; in TestMoonAge()
382 …gc.set((int)testcase[i][0],(int)testcase[i][1]-1,(int)testcase[i][2],(int)testcase[i][3],(int)test… in TestMoonAge()
/external/ltp/testcases/kernel/timers/timer_settime/
Dtimer_settime03.c78 int testcase[] = { variable
88 int TST_TOTAL = ARRAY_SIZE(testcase);
113 if (TEST_RETURN == -1 && TEST_ERRNO == testcase[i]) { in main()
119 testcase[i], strerror(testcase[i])); in main()
/external/tensorflow/tensorflow/contrib/gan/python/estimator/python/
Dgan_estimator_test.py62 def mock_head(testcase, expected_generator_inputs, expected_real_data, argument
76 testcase.assertIsNone(features)
77 testcase.assertIsNone(labels)
78 testcase.assertIsInstance(gan_model, namedtuples.GANModel)
83 testcase.assertItemsEqual(expected_var_names,
89 testcase.assertEqual(expected_generator_inputs, gan_model.generator_inputs)
91 testcase.assertItemsEqual(
94 testcase.assertEqual(generator_scope_name, gan_model.generator_scope.name)
95 testcase.assertEqual(_or_none(expected_real_data), gan_model.real_data)
99 testcase.assertIsNone(gan_model.discriminator_scope)
[all …]
/external/curl/tests/data/
Dtest10111 <testcase>
14 Location: moo.html&testcase=/10110002
29 Location: moo.html&testcase=/10110002
69 mooGET /blah/moo.html&testcase=/10110002 HTTP/1.1
76 </testcase>

12345678910>>...65