Home
last modified time | relevance | path

Searched refs:test_case (Results 1 – 25 of 274) sorted by relevance

1234567891011

/third_party/boost/libs/callable_traits/test/
Dapply_member_pointer_function.cpp15 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 …]
Dapply_member_pointer_pmf.cpp16 void test_case() { in test_case() function
22test_case<int(a::*)(), int(b::*)() >(); in main()
23test_case<int(a::*)() TX_SAFE, int(b::*)() TX_SAFE >(); in main()
24test_case<int(a::*)() LREF, int(b::*)() LREF >(); in main()
25test_case<int(a::*)() LREF TX_SAFE, int(b::*)() LREF TX_SAFE >(); in main()
26test_case<int(a::*)() RREF, int(b::*)() RREF >(); in main()
27test_case<int(a::*)() RREF TX_SAFE, int(b::*)() RREF TX_SAFE >(); in main()
28test_case<int(a::*)() const, int(b::*)() const >(); in main()
29test_case<int(a::*)() const TX_SAFE, int(b::*)() const TX_SAFE >(); in main()
30test_case<int(a::*)() const LREF, int(b::*)() const LREF >(); in main()
[all …]
Dapply_member_pointer_pmd.cpp15 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/
Dtest_util.py367 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/
DJamfile.v214 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/
Dtest_util.py408 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/
Darray0.cpp28 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 …]
Darray6.cpp21 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()
Darray7.cpp25 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()
Darray_getfail2.cpp26 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/
Dgl4cCopyImageTests.cpp2578 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 …]
Dgl3cTextureSwizzleTests.hpp220 …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/
Dtest_json.cc237 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/
Dutils.py60 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/
Dpivot_root01.c66 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/
Dgen_build_yaml.py38 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/
Dfast_urem_by_const_test.cpp66 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/
Dtest-whatwg-url-setters.js45 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/
Dget_mempolicy01.c40 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/
Dpow10_helper_test.cc110 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/
Dpow10_helper_test.cc110 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/
Dpath_table.cpp104 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/
Dtest_result.py219 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/
Dmprotect01.c51 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/
Dclient.py53 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)

1234567891011