Home
last modified time | relevance | path

Searched refs:expectation (Results 1 - 25 of 47) sorted by relevance

12

/third_party/node/test/parallel/
H A Dtest-dns-lookup-promises.js38 expectation: { address: '::1', family: 6 }
43 expectation: { address: '127.0.0.1', family: 4 }
48 expectation: { address: '127.0.0.1', family: 4 }
53 expectation: { address: 'some-address', family: 0 }
58 expectation: { address: 'some-address2', family: 6 }
60 ].forEach(async ({ stub, factory, expectation }) => {
62 assert.deepStrictEqual(await factory(), expectation);
81 expectation: [
89 expectation: [
97 expectation
[all...]
/third_party/node/test/common/
H A Dheap.js127 for (const expectation of expected) {
128 if (expectation.children) {
129 for (const expectedEdge of expectation.children) {
146 if (expectation.detachedness !== undefined) {
148 (node) => node.detachedness === expectation.detachedness);
152 `detachedness ${expectation.detachedness}, ` +
158 `${expectation.detachedness}, found ${matchedNodes.length}`);
179 for (const expectation of expected) {
180 if (expectation.children) {
181 for (const expectedEdge of expectation
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
H A DMinimumBufferSizeValidationTests.cpp52 // Runs |func| with |correctSizes|, and an expectation of success and failure
283 bool expectation) {
292 if (!expectation) {
302 bool expectation) {
313 if (!expectation) {
347 CheckSizeBounds({8, 4}, [&](const std::vector<uint64_t>& sizes, bool expectation) {
349 if (expectation) {
372 CheckSizeBounds({8, 4, 12, 16}, [&](const std::vector<uint64_t>& sizes, bool expectation) {
375 if (expectation) {
394 CheckSizeBounds({8, 4}, [&](const std::vector<uint64_t>& sizes, bool expectation) {
[all...]
H A DDrawIndirectValidationTests.cpp47 void ValidateExpectation(wgpu::CommandEncoder encoder, utils::Expectation expectation) { in ValidateExpectation() argument
48 if (expectation == utils::Expectation::Success) { in ValidateExpectation()
55 void TestIndirectOffsetDrawIndexed(utils::Expectation expectation, in TestIndirectOffsetDrawIndexed() argument
58 TestIndirectOffset(expectation, bufferList, indirectOffset, true); in TestIndirectOffsetDrawIndexed()
61 void TestIndirectOffsetDraw(utils::Expectation expectation, in TestIndirectOffsetDraw() argument
64 TestIndirectOffset(expectation, bufferList, indirectOffset, false); in TestIndirectOffsetDraw()
67 void TestIndirectOffset(utils::Expectation expectation, in TestIndirectOffset() argument
90 ValidateExpectation(encoder, expectation); in TestIndirectOffset()
H A DComputeIndirectValidationTests.cpp39 void ValidateExpectation(wgpu::CommandEncoder encoder, utils::Expectation expectation) { in ValidateExpectation() argument
40 if (expectation == utils::Expectation::Success) { in ValidateExpectation()
47 void TestIndirectOffset(utils::Expectation expectation, in TestIndirectOffset() argument
60 ValidateExpectation(encoder, expectation); in TestIndirectOffset()
/third_party/skia/tests/
H A DPDFDocumentTest.cpp142 static bool contains(const uint8_t* result, size_t size, const char expectation[]) { in contains() argument
143 size_t len = strlen(expectation); in contains()
146 if (0 == memcmp(result + i, expectation, len)) { in contains()
175 for (const char* expectation : expectations) { in DEF_TEST()
176 if (!contains(data->bytes(), data->size(), expectation)) { in DEF_TEST()
177 ERRORF(r, "PDFA expectation missing: '%s'.", expectation); in DEF_TEST()
191 for (const char* expectation : moreExpectations) { in DEF_TEST()
192 if (!contains(data->bytes(), data->size(), expectation)) { in DEF_TEST()
193 ERRORF(r, "PDFA expectation missin in DEF_TEST()
[all...]
H A DPDFMetadataAttributeTest.cpp41 for (const char* expectation : expectations) { in DEF_TEST()
42 size_t len = strlen(expectation); in DEF_TEST()
46 if (0 == memcmp(bytes + i, expectation, len)) { in DEF_TEST()
52 ERRORF(r, "expectation missing: '%s'.", expectation); in DEF_TEST()
H A DPDFPrimitivesTest.cpp420 for (const auto& expectation : expectations) { in DEF_TEST()
421 REPORTER_ASSERT(reporter, clusterator.next() == expectation); in DEF_TEST()
440 for (const auto& expectation : expectations) { in DEF_TEST()
441 REPORTER_ASSERT(reporter, clusterator.next() == expectation); in DEF_TEST()
/third_party/rust/crates/bindgen/bindgen-tests/tests/
H A Dtests.rs152 // Overwrite the expectation with actual output. in error_diff_mismatch()
172 Err(Error::new(ErrorKind::Other, "Header and binding differ! Run with BINDGEN_OVERWRITE_EXPECTED=1 in the environment to automatically overwrite the expectation or with BINDGEN_TESTS_DIFFTOOL=meld to do this manually.")) in error_diff_mismatch()
184 let mut expectation = PathBuf::from(header); in compare_generated_header() variables
185 expectation.pop(); in compare_generated_header()
186 expectation.pop(); in compare_generated_header()
187 expectation.push("expectations"); in compare_generated_header()
188 expectation.push("tests"); in compare_generated_header()
195 let mut expectation = expectation.clone(); in compare_generated_header() variables
198 expectation in compare_generated_header()
[all...]
/third_party/node/test/cctest/
H A Dtest_inspector_socket.cc253 static void check_data_cb(read_expects* expectation, ssize_t nread, in check_data_cb() argument
259 CHECK_GT(expectation->expected_len, 0); in check_data_cb()
260 for (i = 0; i < nread && expectation->pos <= expectation->expected_len; i++) { in check_data_cb()
261 c = expectation->expected[expectation->pos++]; in check_data_cb()
265 expectation->pos - 1); in check_data_cb()
271 if (expectation->pos == expectation->expected_len) { in check_data_cb()
272 expectation in check_data_cb()
290 read_expects expectation; prepare_expects() local
319 read_expects expectation = prepare_expects(data, len); expect_on_client() local
[all...]
/third_party/mesa3d/.gitlab-ci/tests/utils/
H A Dtest_lava_log.py48 "method, collapsed, expectation",
52 def test_gitlab_section(method, collapsed, expectation):
62 assert result == expectation
156 "input, expectation, tag",
160 def test_hide_sensitive_data(input, expectation, tag):
165 assert result == expectation
342 "messages, expectation",
346 def test_detect_failure(messages, expectation):
348 with expectation:
/third_party/skia/third_party/externals/dawn/src/tests/
H A DDawnTest.cpp1011 // The device will be destroyed soon after, so we want to set the expectation.
1061 detail::Expectation* expectation) {
1064 // We need to enqueue the copy immediately because by the time we resolve the expectation,
1080 deferred.expectation.reset(expectation);
1089 detail::Expectation* expectation,
1110 // We need to enqueue the copy immediately because by the time we resolve the expectation,
1131 deferred.expectation.reset(expectation);
1144 detail::Expectation* expectation) {
[all...]
H A DDawnTest.h45 #define EXPECT_BUFFER(buffer, offset, size, expectation) \
46 this->AddBufferExpectation(__FILE__, __LINE__, buffer, offset, size, expectation)
352 detail::Expectation* expectation);
392 E* expectation, in AddTextureExpectation()
399 return AddTextureExpectationImpl(file, line, expectation, texture, origin, extent, level, in AddTextureExpectation()
400 aspect, expectation->DataSize(), bytesPerRow); in AddTextureExpectation()
426 detail::Expectation* expectation);
435 detail::Expectation* expectation);
442 detail::Expectation* expectation);
516 detail::Expectation* expectation,
390 AddTextureExpectation(const char* file, int line, E* expectation, const wgpu::Texture& texture, wgpu::Origin3D origin, wgpu::Extent3D extent, uint32_t level = 0, wgpu::TextureAspect aspect = wgpu::TextureAspect::All, uint32_t bytesPerRow = 0) AddTextureExpectation() argument
562 std::unique_ptr<detail::Expectation> expectation; global() member
[all...]
/third_party/skia/third_party/externals/spirv-tools/test/opt/
H A Dtypes_test.cpp323 bool expectation = true; in TEST() local
329 expectation = false; in TEST()
334 EXPECT_EQ(t->IsUniqueType(false), expectation) in TEST()
336 << (expectation ? "" : "non-") << "unique type"; in TEST()
339 if (t->AsPointer()) expectation = false; in TEST()
340 EXPECT_EQ(t->IsUniqueType(true), expectation) in TEST()
342 << (expectation ? "" : "non-") << "unique type"; in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
H A Dtypes_test.cpp323 bool expectation = true; in TEST() local
329 expectation = false; in TEST()
334 EXPECT_EQ(t->IsUniqueType(false), expectation) in TEST()
336 << (expectation ? "" : "non-") << "unique type"; in TEST()
339 if (t->AsPointer()) expectation = false; in TEST()
340 EXPECT_EQ(t->IsUniqueType(true), expectation) in TEST()
342 << (expectation ? "" : "non-") << "unique type"; in TEST()
/third_party/mesa3d/.gitlab-ci/tests/
H A Dtest_lava_job_submitter.py187 "test_log, expectation, job_result, proxy_args",
194 expectation,
199 with expectation:
286 "message, expectation",
290 def test_parse_job_result_from_log(message, expectation, mock_proxy):
294 assert job.status == expectation
/third_party/skia/third_party/externals/spirv-tools/test/tools/
H A Dspirv_test_framework.py289 expectation = getattr(self.test, expectation_name)
290 if isinstance(expectation, list):
294 for element in expectation
297 elif isinstance(expectation, PlaceHolder):
299 expectation.instantiate_for_expectation(self))
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/tools/
H A Dspirv_test_framework.py289 expectation = getattr(self.test, expectation_name)
290 if isinstance(expectation, list):
294 for element in expectation
297 elif isinstance(expectation, PlaceHolder):
299 expectation.instantiate_for_expectation(self))
/third_party/spirv-tools/test/tools/
H A Dspirv_test_framework.py289 expectation = getattr(self.test, expectation_name)
290 if isinstance(expectation, list):
294 for element in expectation
297 elif isinstance(expectation, PlaceHolder):
299 expectation.instantiate_for_expectation(self))
/third_party/skia/bench/
H A Dcheck_bench_regressions.py25 # Indices for getting elements from bench expectation files.
108 raise Exception('Duplicate expectation entry: ' + str(point_name))
114 for expectation in open(filename).readlines():
115 elements = expectation.strip().split(',')
119 raise Exception("Invalid expectation line format: %s" %
120 expectation)
123 raise Exception("Dup entries for bench expectation %s" %
/third_party/skia/third_party/externals/angle2/src/tests/test_expectations/
H A DGPUTestExpectationsParser.cpp92 // expectation
128 expectation(GPUTestExpectationsParser::kGpuTestPass) in TokenInfo()
134 : name(nameIn), condition(conditionIn), expectation(expectationIn) in TokenInfo()
143 GPUTestExpectationsParser::GPUTestExpectation expectation; member
211 "entry with expectation modifier conflicts",
212 "entry with unsupported expectation",
410 // The longest/most specific matching expectation overrides any others. in getTestExpectationImpl()
450 "Line " + ToString(unusedExpectations[i].lineNumber) + ": expectation was unused."; in getUnusedExpectationsMessages()
610 if ((mExpectationsAllowMask & kTokenData[token].expectation) == 0) in parseLine()
616 entry.testExpectation = kTokenData[token].expectation; in parseLine()
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dtest_reflow.py72 def match_with_expected(resultFile, expectation):
74 expect, expect_newline = loadFile(expectation)
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
H A DShCompile_test.cpp40 void testCompile(const char **shaderStrings, int stringCount, bool expectation) in testCompile() argument
45 EXPECT_EQ(expectation, success) << compileLog; in testCompile()
/third_party/googletest/googlemock/include/gmock/
H A Dgmock-spec-builders.h43 // A user can use the EXPECT_CALL() macro to specify an expectation on
92 // An abstract handle of an expectation.
95 // A set of expectation handles.
109 // Implements an expectation.
133 // expectation gets picked. Therefore, we sequence all mock function
166 // Returns the expectation that matches the given function arguments
208 // which must be an expectation on this mock function.
462 // An abstract handle of an expectation. Useful in the .After()
480 // Constructs a null object that doesn't reference any expectation.
502 // Returns true if and only if rhs references the same expectation a
[all...]
/third_party/googletest/googlemock/src/
H A Dgmock-spec-builders.cc103 // Explicitly specifies the cardinality of this expectation. Used by
110 // Retires all pre-requisites of this expectation.
114 // We can take this short-cut as we never retire an expectation in GTEST_EXCLUSIVE_LOCK_REQUIRED_()
136 // Returns true if and only if all pre-requisites of this expectation
157 // Adds unsatisfied pre-requisites of this expectation to 'result'.
188 // expectation has occurred.
199 // Describes the state of the expectation (e.g. is it satisfied? in GTEST_EXCLUSIVE_LOCK_REQUIRED_()
377 // which must be an expectation on this mock function.
388 Assert(false, __FILE__, __LINE__, "Cannot find expectation.");
421 // No need to show the source file location of the expectation in GTEST_EXCLUSIVE_LOCK_REQUIRED_()
[all...]

Completed in 16 milliseconds

12