Home
last modified time | relevance | path

Searched refs:expectation (Results 1 – 25 of 190) sorted by relevance

12345678

/third_party/node/test/parallel/
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 }) => { field
62 assert.deepStrictEqual(await factory(), expectation);
81 expectation: [
89 expectation: [
97 expectation: [
[all …]
Dtest-worker-onmessage.js10 const expectation = [ 4, undefined, null ]; variable
14 if (actual.length === expectation.length) {
15 assert.deepStrictEqual(expectation, actual);
18 }, expectation.length));
/third_party/skia/tests/
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() local
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() local
192 if (!contains(data->bytes(), data->size(), expectation)) { in DEF_TEST()
193 ERRORF(r, "PDFA expectation missing: '%s'.", expectation); in DEF_TEST()
218 for (const char* expectation : expectations) { in DEF_TEST() local
[all …]
DPDFMetadataAttributeTest.cpp41 for (const char* expectation : expectations) { in DEF_TEST() local
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()
/third_party/node/test/common/
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.children) {
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
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()
DMinimumBufferSizeValidationTests.cpp283 bool expectation) { in TestDispatch() argument
292 if (!expectation) { in TestDispatch()
302 bool expectation) { in TestDraw() argument
313 if (!expectation) { in TestDraw()
347 CheckSizeBounds({8, 4}, [&](const std::vector<uint64_t>& sizes, bool expectation) { in TEST_F() argument
349 if (expectation) { in TEST_F()
372 CheckSizeBounds({8, 4, 12, 16}, [&](const std::vector<uint64_t>& sizes, bool expectation) { in TEST_F() argument
375 if (expectation) { in TEST_F()
394 CheckSizeBounds({8, 4}, [&](const std::vector<uint64_t>& sizes, bool expectation) { in TEST_F() argument
395 if (expectation) { in TEST_F()
[all …]
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/rust/crates/bindgen/bindgen-tests/tests/
Dtests.rs184 let mut expectation = PathBuf::from(header); in compare_generated_header() localVariable
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() localVariable
198 expectation.push("libclang-9"); in compare_generated_header()
200 expectation.push("libclang-5"); in compare_generated_header()
203 None => expectation.push("libclang-9"), in compare_generated_header()
215 expectation.push(format!("libclang-{}", version_str)); in compare_generated_header()
[all …]
/third_party/skia/third_party/externals/tint/docs/
Dend-to-end-tests.md11expectation file**. This expectation file sits next to the input file, with a `<input-file>.expect…
13 An expectation file contains the expected output of Tint, when passed the input file for the given …
15 If the first line of the expectation file starts `SKIP`, then the test will be skipped instead of f…
28 |`--generate-expected` | Generate expectation files for the tests that previously had no expectatio…
29 |`--generate-skip` | Generate `SKIP` expectation files for tests that are not currently passing.
/third_party/node/test/cctest/
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->read_expected = true; in check_data_cb()
290 read_expects expectation; in prepare_expects() local
291 expectation.expected = data; in prepare_expects()
292 expectation.expected_len = len; in prepare_expects()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/
DDawnTest.cpp1061 detail::Expectation* expectation) { in AddBufferExpectation() argument
1080 deferred.expectation.reset(expectation); in AddBufferExpectation()
1089 detail::Expectation* expectation, in AddTextureExpectationImpl() argument
1131 deferred.expectation.reset(expectation); in AddTextureExpectationImpl()
1144 detail::Expectation* expectation) { in ExpectSampledFloatDataImpl() argument
1219 return EXPECT_BUFFER(readbackBuffer, 0, initialBufferData.size() * sizeof(float), expectation); in ExpectSampledFloatDataImpl()
1228 detail::Expectation* expectation) { in ExpectSampledFloatData() argument
1237 height, componentCount, 1, expectation); in ExpectSampledFloatData()
1247 detail::Expectation* expectation) { in ExpectMultisampledFloatData() argument
1256 width, height, componentCount, sampleCount, expectation); in ExpectMultisampledFloatData()
[all …]
DDawnTest.h45 #define EXPECT_BUFFER(buffer, offset, size, expectation) \ argument
46 this->AddBufferExpectation(__FILE__, __LINE__, buffer, offset, size, expectation)
352 detail::Expectation* expectation);
392 E* expectation,
399 return AddTextureExpectationImpl(file, line, expectation, texture, origin, extent, level,
400 aspect, expectation->DataSize(), bytesPerRow);
426 detail::Expectation* expectation);
435 detail::Expectation* expectation);
442 detail::Expectation* expectation);
516 detail::Expectation* expectation,
[all …]
/third_party/mesa3d/.gitlab-ci/tests/utils/
Dtest_lava_log.py52 def test_gitlab_section(method, collapsed, expectation): argument
62 assert result == expectation
160 def test_hide_sensitive_data(input, expectation, tag): argument
165 assert result == expectation
346 def test_detect_failure(messages, expectation): argument
348 with expectation:
/third_party/googletest/docs/reference/
Dmocking.md63 Creates an [expectation](../gmock_for_dummies.md#setting-expectations) that the
70 correspond to each argument of the method *`method_name`*. The expectation will
72 matchers. If `(`*`matchers...`*`)` is omitted, the expectation behaves as if
76 The following chainable clauses can be used to modify the expectation, and they
96 Restricts the expectation to apply only to mock function calls whose arguments
104 For example, the following code sets the expectation that
119 The `With` clause can be used at most once on an expectation and must be the
149 The `Times` clause can be used at most once on an expectation.
161 For example, the following code sets the expectation that the `Reset()` method
177 The `InSequence` clause can be used any number of times on an expectation.
[all …]
/third_party/googletest/googlemock/test/
Dgmock_output_test_golden.txt36 Google Mock tried the following 1 expectation, but it didn't match:
49 Google Mock tried the following 1 expectation, but it didn't match:
95 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(_, _))...
96 Expected: the expectation is active
100 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(0, 0))...
116 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
121 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
137 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
142 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
174 Google Mock tried the following 1 expectation, but it didn't match:
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/opt/
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/
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/
Dtest_lava_job_submitter.py194 expectation, argument
199 with expectation:
290 def test_parse_job_result_from_log(message, expectation, mock_proxy): argument
294 assert job.status == expectation
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/tools/
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/spirv-tools/test/tools/
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/
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/opt/
Dtypes_test.cpp384 bool expectation = true; in TEST() local
390 expectation = false; in TEST()
395 EXPECT_EQ(t->IsUniqueType(false), expectation) in TEST()
397 << (expectation ? "" : "non-") << "unique type"; in TEST()
400 if (t->AsPointer()) expectation = false; in TEST()
401 EXPECT_EQ(t->IsUniqueType(true), expectation) in TEST()
403 << (expectation ? "" : "non-") << "unique type"; in TEST()
/third_party/skia/bench/
Dcheck_bench_regressions.py114 for expectation in open(filename).readlines():
115 elements = expectation.strip().split(',')
120 expectation)
/third_party/googletest/docs/
Dgmock_for_dummies.md249 Actual function call count doesn't match this expectation:
257 the line number to jump right to the failed expectation.
271 Well, specifying the expectation beforehand allows gMock to report a violation
290 In gMock we use the `EXPECT_CALL()` macro to set an expectation on a mock
318 more information about the expectation. We'll discuss how each clause works in
321 This syntax is designed to make an expectation read like English. For example,
342 failed expectation in messages, making debugging easier.
404 occur. It allows us to repeat an expectation many times without actually writing
446 expectation matches using a series of `WillOnce()` clauses followed by an
525 So far we've only shown examples where you have a single expectation. More
[all …]

12345678