/third_party/boost/libs/callable_traits/test/ |
D | apply_member_pointer_function.cpp | 15 void test_case() { in test_case() function 21 test_case<int(), int(foo::*)() >(); in main() 24 test_case<int() TX_SAFE, int(foo::*)() TX_SAFE >(); in main() 25 test_case<int() LREF, int(foo::*)() LREF >(); in main() 26 test_case<int() LREF TX_SAFE, int(foo::*)() LREF TX_SAFE >(); in main() 27 test_case<int() RREF, int(foo::*)() RREF >(); in main() 28 test_case<int() RREF TX_SAFE, int(foo::*)() RREF TX_SAFE >(); in main() 29 test_case<int() const, int(foo::*)() const >(); in main() 30 test_case<int() const TX_SAFE, int(foo::*)() const TX_SAFE >(); in main() 31 test_case<int() const LREF, int(foo::*)() const LREF >(); in main() [all …]
|
D | apply_member_pointer_pmf.cpp | 16 void test_case() { in test_case() function 22 …test_case<int(a::*)(), int(b::*)() >(); in main() 23 …test_case<int(a::*)() TX_SAFE, int(b::*)() TX_SAFE >(); in main() 24 …test_case<int(a::*)() LREF, int(b::*)() LREF >(); in main() 25 …test_case<int(a::*)() LREF TX_SAFE, int(b::*)() LREF TX_SAFE >(); in main() 26 …test_case<int(a::*)() RREF, int(b::*)() RREF >(); in main() 27 …test_case<int(a::*)() RREF TX_SAFE, int(b::*)() RREF TX_SAFE >(); in main() 28 …test_case<int(a::*)() const, int(b::*)() const >(); in main() 29 …test_case<int(a::*)() const TX_SAFE, int(b::*)() const TX_SAFE >(); in main() 30 …test_case<int(a::*)() const LREF, int(b::*)() const LREF >(); in main() [all …]
|
D | apply_member_pointer_pmd.cpp | 15 void test_case() { in test_case() function 20 test_case<int, int foo::*>(); in main() 21 test_case<int &, int foo::*>(); in main() 22 test_case<int const, int const foo::*>(); in main() 23 test_case<int const &, int const foo::*>(); in main() 24 test_case<int volatile, int volatile foo::*>(); in main() 25 test_case<int volatile &, int volatile foo::*>(); in main() 28 test_case<int(* const)(), int(* const foo::*)()>(); in main() 29 test_case<int(* const &)(), int(* const foo::*)()>(); in main()
|
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
D | test_util.py | 367 def ExpectAllFieldsSet(test_case, message): argument 369 test_case.assertTrue(message.HasField('optional_int32')) 370 test_case.assertTrue(message.HasField('optional_int64')) 371 test_case.assertTrue(message.HasField('optional_uint32')) 372 test_case.assertTrue(message.HasField('optional_uint64')) 373 test_case.assertTrue(message.HasField('optional_sint32')) 374 test_case.assertTrue(message.HasField('optional_sint64')) 375 test_case.assertTrue(message.HasField('optional_fixed32')) 376 test_case.assertTrue(message.HasField('optional_fixed64')) 377 test_case.assertTrue(message.HasField('optional_sfixed32')) [all …]
|
/third_party/boost/libs/config/checks/ |
D | Jamfile.v2 | 14 obj two_arg_use_facet : test_case.cpp : <define>TEST_BOOST_HAS_TWO_ARG_USE_FACET ; 15 obj bethreads : test_case.cpp : <define>TEST_BOOST_HAS_BETHREADS ; 16 obj clock_gettime : test_case.cpp : <define>TEST_BOOST_HAS_CLOCK_GETTIME ; 17 obj pragma_detect_mismatch : test_case.cpp : <define>TEST_BOOST_HAS_PRAGMA_DETECT_MISMATCH ; 18 obj dirent_h : test_case.cpp : <define>TEST_BOOST_HAS_DIRENT_H ; 19 obj expm1 : test_case.cpp : <define>TEST_BOOST_HAS_EXPM1 ; 20 obj float128 : test_case.cpp : <define>TEST_BOOST_HAS_FLOAT128 ; 21 obj ftime : test_case.cpp : <define>TEST_BOOST_HAS_FTIME ; 22 obj getsystemtimeasfiletime : test_case.cpp : <define>TEST_BOOST_HAS_GETSYSTEMTIMEASFILETIME ; 23 obj gettimeofday : test_case.cpp : <define>TEST_BOOST_HAS_GETTIMEOFDAY ; [all …]
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | test_util.py | 408 def ExpectAllFieldsSet(test_case, message): argument 410 test_case.assertTrue(message.HasField('optional_int32')) 411 test_case.assertTrue(message.HasField('optional_int64')) 412 test_case.assertTrue(message.HasField('optional_uint32')) 413 test_case.assertTrue(message.HasField('optional_uint64')) 414 test_case.assertTrue(message.HasField('optional_sint32')) 415 test_case.assertTrue(message.HasField('optional_sint64')) 416 test_case.assertTrue(message.HasField('optional_fixed32')) 417 test_case.assertTrue(message.HasField('optional_fixed64')) 418 test_case.assertTrue(message.HasField('optional_sfixed32')) [all …]
|
/third_party/boost/libs/array/test/ |
D | array0.cpp | 28 test_type test_case = {}; in RunTests() local 31 test_case.fill ( T() ); in RunTests() 35 BOOST_TEST ( test_case.empty()); in RunTests() 38 BOOST_TEST ( test_case.size() == 0 ); in RunTests() 42 BOOST_TEST ( test_case.begin() == test_case.end()); in RunTests() 43 BOOST_TEST ( test_case.cbegin() == test_case.cend()); in RunTests() 47 BOOST_TEST ( test_case.begin() != const_test_case.begin() ); in RunTests() 48 if( test_case.data() == const_test_case.data() ) { in RunTests() 54 std::for_each( test_case.begin(), test_case.end(), BadValue< T > ); in RunTests() 55 std::for_each( test_case.rbegin(), test_case.rend(), BadValue< T > ); in RunTests() [all …]
|
D | array6.cpp | 21 test_type test_case; // = { 1, 1, 2, 3, 5 }; in RunTests() local 23 arr &aRef = get_c_array ( test_case ); in RunTests() 24 BOOST_TEST ( &*test_case.begin () == &aRef[0] ); in RunTests() 26 const arr &caRef = get_c_array ( test_case ); in RunTests() 27 typename test_type::const_iterator iter = test_case.begin (); in RunTests() 32 test_case.at( test_case.size()); in RunTests() 38 test_case.at( test_case.size() + 1); in RunTests() 44 test_case.at( test_case.size() + 100); in RunTests()
|
D | array7.cpp | 25 test_type test_case; // = { 1, 1, 2, 3, 5 }; in RunStdTests() local 27 T &aRef = std::get<0> ( test_case ); in RunStdTests() 28 BOOST_TEST ( &*test_case.begin () == &aRef ); in RunStdTests() 30 const T &caRef = std::get<0> ( test_case ); in RunStdTests() 31 BOOST_TEST ( &*test_case.cbegin () == &caRef ); in RunStdTests() 39 test_type test_case; // = { 1, 1, 2, 3, 5 }; in RunBoostTests() local 41 T &aRef = boost::get<0> ( test_case ); in RunBoostTests() 42 BOOST_TEST ( &*test_case.begin () == &aRef ); in RunBoostTests() 44 const T &caRef = boost::get<0> ( test_case ); in RunBoostTests() 45 BOOST_TEST ( &*test_case.cbegin () == &caRef ); in RunBoostTests()
|
D | array_getfail2.cpp | 26 test_type test_case; // = { 1, 1, 2, 3, 5 }; in RunStdTests() local 28 T &aRef = std::get<0> ( test_case ); in RunStdTests() 29 BOOST_TEST ( &*test_case.begin () == &aRef ); in RunStdTests() 31 const T &caRef = std::get<0> ( test_case ); in RunStdTests() 32 BOOST_TEST ( &*test_case.cbegin () == &caRef ); in RunStdTests() 41 test_type test_case; // = { 1, 1, 2, 3, 5 }; in RunBoostTests() local 43 T &aRef = boost::get<5> ( test_case ); in RunBoostTests() 44 BOOST_TEST ( &*test_case.begin () == &aRef ); in RunBoostTests()
|
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
D | gl4cCopyImageTests.cpp | 2578 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local 2587 prepareDstPxls(test_case.m_dst, dst_pixels); in iterate() 2588 prepareSrcPxls(test_case.m_src, test_case.m_dst.m_internal_format, src_pixels); in iterate() 2591 m_dst_tex_name = prepareTexture(test_case.m_dst, (const GLubyte**)dst_pixels, m_dst_buf_name); in iterate() 2593 if (GL_RENDERBUFFER == test_case.m_src.m_target) in iterate() 2595 targetDesc desc = test_case.m_src; in iterate() 2598 m_rb_name = prepareTexture(test_case.m_src, (const GLubyte**)src_pixels, m_src_buf_name); in iterate() 2603 m_src_tex_name = prepareTexture(test_case.m_src, (const GLubyte**)src_pixels, m_src_buf_name); in iterate() 2607 result = copyAndVerify(test_case, (const GLubyte**)dst_pixels, (const GLubyte**)src_pixels); in iterate() 2703 bool FunctionalTest::copyAndVerify(const testCase& test_case, const GLubyte** dst_pixels, const GLu… in copyAndVerify() argument [all …]
|
D | gl3cTextureSwizzleTests.hpp | 220 …void captureAndVerify(const testCase& test_case, size_t output_format_index, glw::GLint output_cha… 228 void executeTestCase(const testCase& test_case); 232 …std::string getFragmentShader(const testCase& test_case, size_t output_format_index, bool is_teste… 234 std::string getVertexShader(const testCase& test_case, bool is_tested_stage); 242 void logTestCaseDetials(const testCase& test_case); 244 …void prepareAndTestProgram(const testCase& test_case, size_t output_format_index, glw::GLint outpu… 247 std::string prepareArguments(const testCase& test_case); 248 std::string prepareCoordinates(const testCase& test_case); 250 std::string prepareDerivatives(const testCase& test_case, size_t index); 252 std::string prepareOffsets(const testCase& test_case); [all …]
|
/third_party/grpc/third_party/upb/tests/json/ |
D | test_json.cc | 237 for (const TestCase* test_case = kTestRoundtripMessages; in test_json_roundtrip() local 238 test_case->input != NULL; test_case++) { in test_json_roundtrip() 240 (test_case->expected == EXPECT_SAME) ? in test_json_roundtrip() 241 test_case->input : in test_json_roundtrip() 242 test_case->expected; in test_json_roundtrip() 244 for (size_t i = 0; i < strlen(test_case->input); i++) { in test_json_roundtrip() 245 test_json_roundtrip_message(test_case->input, expected, in test_json_roundtrip() 252 for (const TestCase* test_case = kTestSkipUnknown; in test_json_roundtrip() local 253 test_case->input != NULL; test_case++) { in test_json_roundtrip() 255 (test_case->expected == EXPECT_SAME) ? in test_json_roundtrip() [all …]
|
/third_party/mindspore/tests/st/numpy_native/ |
D | utils.py | 60 def run_non_kw_test(mnp_fn, onp_fn, test_case): argument 62 for i in range(len(test_case.arrs)): 63 arrs = test_case.arrs[:i] 66 for i in range(len(test_case.scalars)): 67 arrs = test_case.scalars[:i] 70 for i in range(len(test_case.expanded_arrs)): 71 arrs = test_case.expanded_arrs[:i] 74 for i in range(len(test_case.nested_arrs)): 75 arrs = test_case.nested_arrs[:i] 122 def run_binop_test(mnp_fn, onp_fn, test_case, error=0): argument [all …]
|
/third_party/ltp/testcases/kernel/syscalls/pivot_root/ |
D | pivot_root01.c | 66 static const struct test_case { struct 67 int test_case; member 93 static void run(unsigned int test_case) in run() argument 120 if (test_cases[test_case].test_case != NEW_ROOT_ON_CURRENT_ROOT) in run() 128 if (test_cases[test_case].test_case == PUT_OLD_NOT_UNDERNEATH_NEW_ROOT) { in run() 136 if (test_cases[test_case].test_case == PUT_OLD_NOT_DIR) in run() 142 if (test_cases[test_case].test_case == NO_CAP_SYS_ADMIN) { in run() 154 if (test_cases[test_case].test_case == NORMAL) { in run() 168 if (errno != test_cases[test_case].expected_error) { in run()
|
/third_party/grpc/test/cpp/naming/ |
D | gen_build_yaml.py | 38 for test_case in resolver_component_data['resolver_component_tests']: 40 test_case['record_to_resolve'], 48 test_case['do_ordered_address_comparison']), 50 _build_expected_addrs_cmd_arg(test_case['expected_addrs'])), 52 (test_case['expected_chosen_service_config'] or '')), 54 (test_case['expected_service_config_error'] or '')), 55 ('expected_lb_policy', (test_case['expected_lb_policy'] or '')), 56 ('enable_srv_queries', test_case['enable_srv_queries']), 57 ('enable_txt_queries', test_case['enable_txt_queries']), 59 test_case['inject_broken_nameserver_list']),
|
/third_party/mesa3d/src/util/tests/fast_urem_by_const/ |
D | fast_urem_by_const_test.cpp | 66 test_case(uint32_t n, uint32_t d) in test_case() function 84 test_case(n, d); in TEST() 90 test_case(0, 1); in TEST() 91 test_case(0, UINT32_MAX); in TEST() 92 test_case(UINT32_MAX, 1); in TEST() 93 test_case(1, UINT32_MAX); in TEST() 94 test_case(UINT32_MAX, UINT32_MAX); in TEST() 95 test_case(UINT32_MAX, UINT32_MAX - 1); in TEST() 96 test_case(UINT32_MAX - 1, UINT32_MAX - 1); in TEST() 97 test_case(UINT32_MAX - 2, UINT32_MAX - 1); in TEST()
|
/third_party/node/test/parallel/ |
D | test-whatwg-url-setters.js | 45 var test_case = test_cases[i]; 46 var name = `Setting <${test_case.href}>.${attribute_to_be_set}` + 47 ` = '${test_case.new_value}'`; 48 if ("comment" in test_case) { 49 name += ` ${test_case.comment}`; 52 var url = new URL(test_case.href); 53 url[attribute_to_be_set] = test_case.new_value; 54 for (var attribute in test_case.expected) { 55 assert_equals(url[attribute], test_case.expected[attribute])
|
/third_party/ltp/testcases/kernel/syscalls/get_mempolicy/ |
D | get_mempolicy01.c | 40 struct test_case { struct 45 int (*pre_test)(struct test_case *tc); argument 46 int (*alloc)(struct test_case *tc); argument 50 static int test_set_mempolicy_default(struct test_case *tc); argument 51 static int test_set_mempolicy_none(struct test_case *tc); 52 static int test_mbind_none(struct test_case *tc); 53 static int test_mbind_default(struct test_case *tc); 55 static struct test_case tcase[] = { 112 static int test_set_mempolicy_default(struct test_case *tc) in test_set_mempolicy_default() 118 static int test_set_mempolicy_none(struct test_case *tc) in test_set_mempolicy_none() [all …]
|
/third_party/abseil-cpp/absl/strings/internal/ |
D | pow10_helper_test.cc | 110 for (const TestCase& test_case : kTestCases) { in TEST() local 111 EXPECT_EQ(Pow10(test_case.power), in TEST() 112 std::ldexp(test_case.significand, test_case.radix)) in TEST() 113 << absl::StrFormat("Failure for Pow10(%d): %a vs %a", test_case.power, in TEST() 114 Pow10(test_case.power), in TEST() 115 std::ldexp(test_case.significand, test_case.radix)); in TEST()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | pow10_helper_test.cc | 110 for (const TestCase& test_case : kTestCases) { in TEST() local 111 EXPECT_EQ(Pow10(test_case.power), in TEST() 112 std::ldexp(test_case.significand, test_case.radix)) in TEST() 113 << absl::StrFormat("Failure for Pow10(%d): %a vs %a", test_case.power, in TEST() 114 Pow10(test_case.power), in TEST() 115 std::ldexp(test_case.significand, test_case.radix)); in TEST()
|
/third_party/boost/libs/filesystem/doc/ |
D | path_table.cpp | 104 void do_cell( const string & test_case, int i ) in do_cell() argument 106 string temp = column[i]->cell_value(path(test_case)); in do_cell() 133 void do_row( const string & test_case ) in do_row() argument 137 if (test_case.empty()) in do_row() 140 outfile << "<td><code>" << test_case << "</code></td>\n"; in do_row() 144 do_cell( test_case, i ); in do_row() 176 string test_case; in do_table() local 177 while ( std::getline( infile, test_case ) ) in do_table() 179 if (!test_case.empty() && *--test_case.end() == '\r') in do_table() 180 test_case.erase(test_case.size()-1); in do_table() [all …]
|
/third_party/python/Lib/unittest/test/ |
D | test_result.py | 219 test_case, formatted_exc = result.failures[0] 220 self.assertIs(test_case, test) 267 test_case, formatted_exc = result.errors[0] 268 self.assertIs(test_case, test) 287 test_case, formatted_exc = result.errors[0] 317 test_case, formatted_exc = result.errors[0] 318 self.assertIs(test_case, subtest) 320 test_case, formatted_exc = result.failures[0] 321 self.assertIs(test_case, subtest) 683 test_case, formatted_exc = result.errors[0] [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mprotect/ |
D | mprotect01.c | 51 struct test_case { struct 56 void (*setupfunc) (struct test_case *self); argument 61 static void setup1(struct test_case *self); 62 static void setup2(struct test_case *self); 63 static void setup3(struct test_case *self); 67 struct test_case TC[] = { 122 static void setup1(struct test_case *self) in setup1() 127 static void setup2(struct test_case *self) in setup2() 138 static void setup3(struct test_case *self) in setup3()
|
/third_party/grpc/src/python/grpcio_tests/tests/fork/ |
D | client.py | 53 for test_case in methods.TestCase: 54 if test_case_arg == test_case.value: 55 return test_case 64 for test_case in methods.TestCase: 65 test_case.run_test(args) 67 test_case = _test_case_from_arg(args['test_case']) 68 test_case.run_test(args)
|