Home
last modified time | relevance | path

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

1234567

/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/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/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 …]
Dgl4cEnhancedLayoutsTests.cpp5577 GLuint test_case = DEBUG_REPEATED_TEST_CASE; in test() local
5581 for (GLuint test_case = 0; test_case < n_test_cases; ++test_case) in test()
5586 if (!testCase(test_case)) in test()
5588 const std::string& test_case_name = getTestCaseName(test_case); in test()
5597 m_context.getTestContext().getLog() << tcu::TestLog::Message << "Test case (" << test_case in test()
8295 testCase& test_case = m_test_cases[test_case_index]; in test() local
8297 if (Utils::Shader::COMPUTE == test_case.m_stage) in test()
8303 Utils::replaceToken("CONSTANT", position, getConstantName(test_case.m_constant), source); in test()
8331 if (test_case.m_stage == stage) in test()
8333 Utils::replaceToken("CONSTANT", position, getConstantName(test_case.m_constant), assignment); in test()
[all …]
Dgl4cSparseBufferTests.cpp1994 const _test_case& test_case = *test_iterator; in execute() local
1996 test_case.dst_bo_is_sparse ? m_sparse_bos[test_case.dst_bo_sparse_id] : m_immutable_bo; in execute()
1998 test_case.src_bo_is_sparse ? m_sparse_bos[test_case.src_bo_sparse_id] : m_immutable_bo; in execute()
2026 m_gl.bufferPageCommitmentARB(GL_COPY_WRITE_BUFFER, test_case.dst_bo_commit_start_offset, in execute()
2027 test_case.dst_bo_commit_size, GL_TRUE); /* commit */ in execute()
2033 m_gl.bufferPageCommitmentARB(GL_COPY_WRITE_BUFFER, test_case.src_bo_commit_start_offset, in execute()
2034 test_case.src_bo_commit_size, GL_TRUE); /* commit */ in execute()
2054 m_gl.copyBufferSubData(GL_COPY_READ_BUFFER, GL_COPY_WRITE_BUFFER, test_case.src_bo_start_offset, in execute()
2055 test_case.dst_bo_start_offset, test_case.n_bytes_to_copy); in execute()
2081 …if (test_case.dst_bo_start_offset != 0 && test_case.dst_bo_commit_start_offset < test_case.dst_bo_… in execute()
[all …]
Dgl3cGPUShader5Tests.cpp437 const testCase& test_case = test_cases[i]; in iterate() local
439 executeTestCase(test_case); in iterate()
537 void GPUShader5ImplicitConversionsTest::executeTestCase(const testCase& test_case) in executeTestCase() argument
548 const std::string& vs = getVertexShader(test_case.m_destination_type, test_case.m_source_type); in executeTestCase()
558 program.setUniform(test_case.m_source_variable_type, "u1", test_case.m_u1_data); in executeTestCase()
559 program.setUniform(test_case.m_source_variable_type, "u2", test_case.m_u2_data); in executeTestCase()
574 verifyImage(white_color, test_case.m_is_white_expected); in executeTestCase()
1039 const testCase& test_case = test_cases[i]; in iterate() local
1041 execute(test_case); in iterate()
1057 void GPUShader5FloatEncodingTest::execute(const testCase& test_case) in execute() argument
[all …]
Dgl4cGPUShaderFP64Tests.hpp1058 bool executeIteration(const _test_case& test_case);
1063 std::string getVertexShaderBody(const _test_case& test_case);
1064 void initIteration(_test_case& test_case);
1067 bool verifyXFBData(const unsigned char* data_ptr, const _test_case& test_case);
1156 bool executeIteration(const _test_case& test_case);
1157 std::string getComputeShaderBody(const _test_case& test_case);
1158 std::string getFragmentShaderBody(const _test_case& test_case);
1159 std::string getGeometryShaderBody(const _test_case& test_case);
1160 std::string getTessellationControlShaderBody(const _test_case& test_case);
1161 std::string getTessellationEvaluationShaderBody(const _test_case& test_case);
[all …]
Dgl4cShadingLanguage420PackTests.cpp4304 const testCase& test_case = m_test_cases[test_case_index]; in prepareNextTestCase() local
4307 << "T1:" << Utils::getTypeName(test_case.m_types.m_t1, test_case.m_n_cols, in prepareNextTestCase()
4308 test_case.m_n_rows) in prepareNextTestCase()
4309 << " T2:" << Utils::getTypeName(test_case.m_types.m_t2, test_case.m_n_cols, in prepareNextTestCase()
4310 test_case.m_n_rows) in prepareNextTestCase()
4505 const testCase& test_case = getCurrentTestCase(); in prepareShaderSource() local
4506 …const GLchar* t1 = Utils::getTypeName(test_case.m_types.m_t1, test_case.m_n_cols, test_case.m… in prepareShaderSource()
4507 …const GLchar* t2 = Utils::getTypeName(test_case.m_types.m_t2, test_case.m_n_cols, test_case.m… in prepareShaderSource()
4508 const std::string& value_list = getValueList(test_case.m_n_cols, test_case.m_n_rows); in prepareShaderSource()
4565 const testCase& test_case = getCurrentTestCase(); in prepareUniforms() local
[all …]
/third_party/node/test/fixtures/wpt/url/
Durl-setters-a-area.window.js18 var test_case = test_cases[i];
19 var name = "Setting <" + test_case.href + ">." + attribute_to_be_set +
20 " = '" + test_case.new_value + "'";
21 if ("comment" in test_case) {
22 name += " " + test_case.comment;
24 const key = test_case.href.split(":")[0];
27 url.href = test_case.href;
28 url[attribute_to_be_set] = test_case.new_value;
29 for (var attribute in test_case.expected) {
30 assert_equals(url[attribute], test_case.expected[attribute])
[all …]
Durl-setters.any.js18 var test_case = test_cases[i];
19 var name = "Setting <" + test_case.href + ">." + attribute_to_be_set +
20 " = '" + test_case.new_value + "'";
21 if ("comment" in test_case) {
22 name += " " + test_case.comment;
24 const key = test_case.href.split(":")[0];
26 var url = new URL(test_case.href);
27 url[attribute_to_be_set] = test_case.new_value;
28 for (var attribute in test_case.expected) {
29 assert_equals(url[attribute], test_case.expected[attribute])
/third_party/ltp/testcases/kernel/syscalls/pivot_root/
Dpivot_root01.c66 static const struct test_case { struct
67 int test_case; argument
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/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/mesa3d/src/util/tests/
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/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/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/ltp/testcases/kernel/syscalls/mknod/
Dmknod07.c87 static void mknod_verify(const struct test_case_t *test_case);
152 static void mknod_verify(const struct test_case_t *test_case) in mknod_verify() argument
154 TEST(mknod(test_case->pathname, test_case->mode, in mknod_verify()
155 makedev(test_case->major, test_case->minor))); in mknod_verify()
162 if (TEST_ERRNO == test_case->exp_errno) { in mknod_verify()
167 "%d - %s", test_case->exp_errno, in mknod_verify()
168 strerror(test_case->exp_errno)); in mknod_verify()
/third_party/ltp/testcases/network/lib6/
Din6_02.c26 } test_case[] = { variable
48 for (i = 0; i < ARRAY_SIZE(test_case); ++i) { in if_nametoindex_test()
49 if (test_case[i].name == NULL) { in if_nametoindex_test()
54 TEST(if_nametoindex(test_case[i].name)); in if_nametoindex_test()
55 if (!TST_RET != !test_case[i].nonzero) { in if_nametoindex_test()
57 test_case[i].name, TST_RET, in if_nametoindex_test()
58 test_case[i].nonzero ? "non" : ""); in if_nametoindex_test()
63 if (!pifn || strcmp(test_case[i].name, pifn)) { in if_nametoindex_test()
66 test_case[i].name, TST_RET, in if_nametoindex_test()
72 test_case[i].name, TST_RET); in if_nametoindex_test()
[all …]
/third_party/skia/third_party/externals/sfntly/cpp/src/test/
Dcmap_test.cc104 ::std::ostream& operator<<(::std::ostream& os, const CMapTestCase *test_case) { in operator <<() argument
106 << test_case->font_name() << ", " in operator <<()
107 << test_case->first_platform_id() << ", " in operator <<()
108 << test_case->first_encoding_id() << ", " in operator <<()
109 << test_case->first_charset_name() << ", " in operator <<()
110 << test_case->second_platform_id() << ", " in operator <<()
111 << test_case->second_encoding_id() << ", " in operator <<()
112 << test_case->second_charset_name() << ", " in operator <<()
113 << test_case->low_char() << ", " in operator <<()
114 << test_case->high_char() << ")"; in operator <<()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
Dfreeze_spec_const_test.cpp38 auto& test_case = GetParam(); in TEST_P() local
41 test_case.type_decl, test_case.spec_const}; in TEST_P()
44 test_case.type_decl, test_case.expected_frozen_const}; in TEST_P()
/third_party/skia/third_party/externals/spirv-tools/test/opt/
Dfreeze_spec_const_test.cpp38 auto& test_case = GetParam(); in TEST_P() local
41 test_case.type_decl, test_case.spec_const}; in TEST_P()
44 test_case.type_decl, test_case.expected_frozen_const}; in TEST_P()
/third_party/mbedtls/scripts/mbedtls_dev/
Dtest_data_generation.py34 from . import test_case
96 def create_test_case(self) -> test_case.TestCase:
98 tc = test_case.TestCase()
108 def generate_function_tests(cls) -> Iterator[test_case.TestCase]:
134 def generate_tests(cls) -> Iterator[test_case.TestCase]:
169 test_cases: Iterable[test_case.TestCase]) -> None:
175 test_case.write_data_file(filename, test_cases)
/third_party/spirv-tools/test/opt/
Dfreeze_spec_const_test.cpp38 auto& test_case = GetParam(); in TEST_P() local
41 test_case.type_decl, test_case.spec_const}; in TEST_P()
44 test_case.type_decl, test_case.expected_frozen_const}; in TEST_P()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/draw_elements_base_vertex/
DesextcDrawElementsBaseVertexTests.cpp643 const _test_case& test_case = *test_cases_iterator; in executeTestCases() local
648 switch (test_case.index_type) in executeTestCases()
667 …setUpFunctionalTestObjects(test_case.use_clientside_vertex_data, test_case.use_clientside_index_da… in executeTestCases()
668 test_case.use_tessellation_shader_stage, test_case.use_geometry_shader_stage, in executeTestCases()
669 test_case.use_vertex_attrib_binding, test_case.use_overflow_test_vertices); in executeTestCases()
677 switch (test_case.function_type) in executeTestCases()
681 gl.drawElementsBaseVertex(test_case.primitive_mode, 3, /* count */ in executeTestCases()
682 test_case.index_type, test_case.index_offset, test_case.basevertex); in executeTestCases()
689 gl.drawElementsInstancedBaseVertex(test_case.primitive_mode, 3, /* count */ in executeTestCases()
690 test_case.index_type, test_case.index_offset, 3, /* instancecount */ in executeTestCases()
[all …]

1234567