Home
last modified time | relevance | path

Searched +full:test +full:- +full:expectations (Results 1 – 25 of 273) sorted by relevance

1234567891011

/third_party/skia/third_party/externals/angle2/doc/
DTestingAndProcesses.md1 # Handling Test Failures
3 ANGLE is tested by a number of test suites, including by the ANGLE CI and Try testers, and by the
8 configurations, both pre- and post- commit. Some tests will fail, crash, or timeout. If these
9 cannot be addressed in a timely manner, file a bug and update test expectations files. Timeliness
12 fixing test failures.
17 as VVL). Validation errors will cause an otherwise-passing test to fail.
19 The [vulkan-deps into ANGLE AutoRoller](https://autoroll.skia.org/r/vulkan-deps-angle-autoroll)
20 updates ANGLE to the top-of-tree (ToT) upstream Vulkan tools and SDK. Sometimes validation errors
24 [upstream bug](https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/new), and
26 `vulkan-deps` AutoRoller introduces a new validation error. The ANGLE Wrangler isn't expected to
[all …]
/third_party/skia/tests/
DYUVTest.cpp4 * Use of this source code is governed by a BSD-style license that can be
13 #include "tests/Test.h"
29 // Test queryYUBAInfo() in codec_yuv()
35 // SkYUVAInfo param is required to be non-null. in codec_yuv()
36 bool success = codec->queryYUVAInfo(kAllTypes, nullptr); in codec_yuv()
39 success = codec->queryYUVAInfo(kNoTypes, &yuvaPixmapInfo); in codec_yuv()
42 success = codec->queryYUVAInfo(kAllTypes, &yuvaPixmapInfo); in codec_yuv()
79 // Test getYUVAPlanes() in codec_yuv()
80 REPORTER_ASSERT(reporter, SkCodec::kSuccess == codec->getYUVAPlanes(pixmaps)); in codec_yuv()
94 SkYUVAInfo expectations = setExpectations({128, 128}, SkYUVAInfo::Subsampling::k420); in DEF_TEST() local
[all …]
/third_party/googletest/docs/
Dgmock_for_dummies.md5 When you write a prototype or test, often it's not feasible or wise to rely on
12 actually mean very different things in the Test-Driven Development (TDD)
17 not suitable for production. An in-memory file system would be an example of
19 * **Mocks** are objects pre-programmed with *expectations*, which form a
22 If all this seems too abstract for you, don't worry - the most important thing
35 2. next, you create some mock objects and specify its expectations and behavior
38 violation to the expectations as soon as it arises.
46 error-prone. No wonder people go great distance to avoid it.
62 * You are stuck with a sub-optimal design and wish you had done more
69 * You want to test how your code handles a failure (e.g. a file checksum
[all …]
Dgmock_faq.md6 [high-perf dependency injection technique](gmock_cook_book.md#MockingNonVirtualMethods).
72 Note that we are talking about the *top-level* `const` modifier here. If the
82 ### I can't figure out why gMock thinks my expectations are not satisfied. What should I do?
84 You might want to run your test with `--gmock_verbose=info`. This flag lets
86 trace, you'll gain insights on why the expectations you set are not met.
98 When a test crashes, the failure signal handler will try to log a lot of
101 intercepts these messages and finds that they don't match any expectations, it
104 You can learn to ignore the errors, or you can rewrite your expectations to make
105 your test more robust, for example, by adding something like:
125 ### I have a failed test where gMock tells me TWICE that a particular expectation is not satisfied.…
[all …]
Dgmock_cheat_sheet.md102 4. Set your expectations on the mock objects (How will they be called? What
107 expectations on it have been satisfied.
114 TEST(BarTest, DoesThis) {
124 // ... other expectations ...
132 gMock has a **built-in default action** for any function that returns `void`,
134 the default-constructed value, if one exists for the given type.
167 ## Setting Expectations {#ExpectCall}
186 By default, expectations can be matched in *any* order. If some or all
187 expectations must be matched in a given order, you can use the
194 gMock will verify the expectations on a mock object when it is destructed, or
[all …]
/third_party/rust/crates/bindgen/
DCONTRIBUTING.md8 <!-- START doctoc generated TOC please keep comment here to allow auto update -->
9 <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
11 - [Code of Conduct](#code-of-conduct)
12 - [Filing an Issue](#filing-an-issue)
13 - [Looking to Start Contributing to `bindgen`?](#looking-to-start-contributing-to-bindgen)
14 - [Building](#building)
15 - [Testing](#testing)
16 - [Overview](#overview)
17 - [Testing Bindings Generation](#testing-bindings-generation)
18 - [Testing Generated Bindings](#testing-generated-bindings)
[all …]
/third_party/skia/tools/
Djsondiff.py6 Use of this source code is governed by a BSD-style license that can be
11 Gathers diffs between 2 JSON expectations files, or between actual and
12 expected results within a single JSON actual-results file,
13 and generates an old-vs-new diff dictionary.
15 TODO(epoger): Fix indentation in this file (2-space indents, not 4-space).
18 # System-level imports
28 # that directory. That script allows us to parse the actual-results.json file
71 1. Each test has either 0 or 1 allowed results.
72 2. All expectations are of type JSONKEY_HASHTYPE_BITMAP_64BITMD5.
77 Any tests for which we have no expectations will be left out of the
[all …]
/third_party/flutter/skia/tools/
Djsondiff.py6 Use of this source code is governed by a BSD-style license that can be
11 Gathers diffs between 2 JSON expectations files, or between actual and
12 expected results within a single JSON actual-results file,
13 and generates an old-vs-new diff dictionary.
15 TODO(epoger): Fix indentation in this file (2-space indents, not 4-space).
18 # System-level imports
28 # that directory. That script allows us to parse the actual-results.json file
71 1. Each test has either 0 or 1 allowed results.
72 2. All expectations are of type JSONKEY_HASHTYPE_BITMAP_64BITMD5.
77 Any tests for which we have no expectations will be left out of the
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/compiler_tests/
DUnrollFlatten_test.cpp3 // Use of this source code is governed by a BSD-style license that can be
7 // Test for the outputting of [[unroll]] and [[flatten]] for the D3D compiler.
8 // This test can only be enabled when HLSL support is enabled.
22 class UnrollFlattenTest : public testing::Test
52 FAIL() << "Couldn't find '" << pattern << "' after expectations '" in expect()
64 << "' after expectations '" << mExpectationList in expect()
69 mExpectationList += " - " + std::string(pattern); in expect()
112 // 1 - shouldn't get a Lod0 version generated in TEST_F()
113 // 2 - no FLATTEN because does not contain discont loop in TEST_F()
114 // 3 - shouldn't get a Lod0 version generated in TEST_F()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DUnrollFlatten_test.cpp3 // Use of this source code is governed by a BSD-style license that can be
7 // Test for the outputting of [[unroll]] and [[flatten]] for the D3D compiler.
8 // This test can only be enabled when HLSL support is enabled.
22 class UnrollFlattenTest : public testing::Test
52 FAIL() << "Couldn't find '" << pattern << "' after expectations '" in expect()
64 << "' after expectations '" << mExpectationList in expect()
69 mExpectationList += " - " + std::string(pattern); in expect()
112 // 1 - shouldn't get a Lod0 version generated in TEST_F()
113 // 2 - no FLATTEN because does not contain discont loop in TEST_F()
114 // 3 - shouldn't get a Lod0 version generated in TEST_F()
[all …]
/third_party/mesa3d/src/freedreno/ci/
Dtraces-freedreno.yml1 traces-db:
2 download-url: "http://10.42.0.1:8888/cache/?uri=https://s3.freedesktop.org/mesa-tracie-public/"
9 # half-life-2: 37.83s
11 # counterstrike-source: 14.24s
20 - path: valve/half-life-2-v2.trace
21 expectations:
23 # - device: freedreno-a306
26 - device: freedreno-a530
28 - device: freedreno-a630
30 …erbuffer.c:606:_mesa_update_renderbuffer_surface: Assertion `level <= resource->last_level' failed.
[all …]
/third_party/node/test/fixtures/wpt/FileAPI/blob/
DBlob-slice.any.js11 desc: "no-argument Blob slice"
14 test(function() {
66 [{start: -6, contents: "STRING"},
67 {start: -12, contents: "PASSSTRING"},
70 {start: 0, end: -6, contents: "PASS"},
71 {start: 0, end: -12, contents: ""},
77 // Test 3 strings
90 // Test string, Blob, string
99 // Test blob, string, blob
110 // Test blobs all the way down
[all …]
DBlob-slice.html2 <meta charset=utf-8>
4 <link rel=help href="https://w3c.github.io/FileAPI/#slice-method-algo">
17 desc: "no-argument Blob slice"
20 test(function() {
72 [{start: -6, contents: "STRING"},
73 {start: -12, contents: "PASSSTRING"},
76 {start: 0, end: -6, contents: "PASS"},
77 {start: 0, end: -12, contents: ""},
83 // Test 3 strings
96 // Test string, Blob, string
[all …]
/third_party/openssl/test/
DREADME.ssltest.md4 SSL testcases are configured in the `ssl-tests` directory.
6 Each `ssl_*.cnf.in` file contains a number of test configurations. These files
9 The precise test output can be dependent on the library configuration. The test
12 However, for verification, we also include checked-in configuration outputs
14 `test/ssl-tests/*.cnf` files.
16 For more details, see `ssl-tests/01-simple.cnf.in` for an example.
18 Configuring the test
19 --------------------
21 First, give your test a name. The names do not have to be unique.
23 An example test input looks like this:
[all …]
/third_party/googletest/googlemock/src/
Dgmock-spec-builders.cc31 // Google Mock - a framework for writing C++ mock classes.
36 #include "gmock/gmock-spec-builders.h"
49 #include "gtest/internal/gtest-port.h"
68 // mockers, and all expectations.
107 // Retires all pre-requisites of this expectation.
111 // We can take this short-cut as we never retire an expectation in RetireAllPreRequisites()
112 // until we have retired all its pre-requisites. in RetireAllPreRequisites()
116 ::std::vector<ExpectationBase*> expectations(1, this); in RetireAllPreRequisites()
117 while (!expectations.empty()) { in RetireAllPreRequisites()
118 ExpectationBase* exp = expectations.back(); in RetireAllPreRequisites()
[all …]
/third_party/rust/crates/bindgen/ci/
Dtest.bat13 echo Found a test with an #include directive of a system header file!
16 echo file, let alone the same version of it that you have. Any test with such an
26 ::Regenerate the test headers' bindings in debug and release modes, and assert
29 cargo test --features "%BINDGEN_FEATURES%" || exit /b 1
30 call .\ci\assert-no-diff.bat
32 cargo test --features "%BINDGEN_FEATURES% testing_only_extra_assertions" || exit /b 1
33 call .\ci\assert-no-diff.bat
35 cargo test --release --features "%BINDGEN_FEATURES% testing_only_extra_assertions" || exit /b 1
36 call .\ci\assert-no-diff.bat
38 ::Now test the expectations' size and alignment tests.
[all …]
/third_party/cef/tests/ceftests/
Dframe_unittest.cc2 // reserved. Use of this source code is governed by a BSD-style license that
21 // The frame navigation test harness work as follows:
24 // 1. TEST() function creates a new FrameNavTestHandler instance with a unique
35 // command-line arguments that specify the FrameNavFactoryId via
51 // renderer side of the test is complete it calls SignalComplete which
57 // renderer-side test completion message.
59 // side of the test is complete it calls SignalComplete which finalizes and
62 // then DestroyTest is called and the test ends. Otherwise, the navigation
66 // To add a new test case:
70 // 4. Implement a TEST() function that creates a FrameNavTestHandler instance
[all …]
/third_party/googletest/googlemock/test/
Dgmock-spec-builders_test.cc31 // Google Mock - a framework for writing C++ mock classes.
35 #include "gmock/gmock-spec-builders.h"
43 #include "gmock/internal/gmock-port.h"
45 #include "gtest/gtest-spi.h"
46 #include "gtest/internal/gtest-port.h"
56 exp->call_count_ = n; in SetCallCount()
115 // This line verifies that a mock method can take a by-reference
123 TEST(MockMethodTest, CanInstantiateWithIncompleteArgType) { in TEST() function
125 // by-reference an argument whose type is incomplete, we can still in TEST()
205 TEST(OnCallSyntaxTest, CompilesWithMethodNameExpandedFromMacro) { in TEST() function
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/tests/
DDawnTest.h7 // http://www.apache.org/licenses/LICENSE-2.0
24 // Getting data back from Dawn is done in an async manners so all expectations are "deferred"
25 // until the end of the test. Also expectations use a copy to a MapRead buffer to get the data
26 // so resources should have the CopySrc allowed usage bit if you want to add expectations on
36 // Test a pixel of the mip level 0 of a 2D texture.
46 // Should only be used to test validation of function that can't be tested by regular validation
211 // MapRead buffers used to get data for the expectations
250 // Assuming the data is mapped, checks all expectations
258 // Instantiate the test once for each backend provided after the first argument. Use it like this:
268 // Skip a test when the given condition is satisfied.
[all …]
/third_party/rust/crates/bindgen/bindgen-tests/tests/
Dtests.rs18 #[path = "../../bindgen-cli/options.rs"]
25 fn rustfmt(source: String) -> (String, String) { in rustfmt()
35 p.args(["run", "nightly", "rustfmt", "--version"]); in rustfmt()
49 The latest `rustfmt` is required to run the `bindgen` test suite. Install in rustfmt()
53 $ rustup component add rustfmt --toolchain nightly in rustfmt()
70 "--config-path", in rustfmt()
99 // Ignore actual rustfmt status because it is often non-zero for trivial in rustfmt()
109 .expect("rustfmt should only emit valid utf-8"); in rustfmt()
119 fn should_overwrite_expected() -> bool { in should_overwrite_expected()
136 ) -> Result<(), Error> { in error_diff_mismatch()
[all …]
/third_party/rust/crates/bindgen/.github/workflows/
Dbindgen.yml6 - main
9 - main
12 rustfmt-clippy:
13 runs-on: ubuntu-latest
16 - uses: actions/checkout@v3
18 - name: Install stable
19 uses: actions-rs/toolchain@v1
22 # TODO: Should ideally be stable, but we use some nightly-only
28 - name: Run rustfmt
29 uses: actions-rs/cargo@v1
[all …]
/third_party/node/deps/npm/node_modules/libnpmpublish/test/
Dpublish.js5 const figgyPudding = require('figgy-pudding')
6 const mockTar = require('./util/mock-tarball.js')
9 const { test } = require('tap')
20 test('basic publish', t => {
37 'dist-tags': {
50 tarball: `http://mock.reg/libnpmpublish/-/libnpmpublish-1.0.0.tgz`
55 'libnpmpublish-1.0.0.tgz': {
56 'content_type': 'application/octet-stream',
64 t.deepEqual(body, packument, 'posted packument matches expectations')
78 test('scoped publish', t => {
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/test_expectations/
DGPUTestExpectationsParser.h3 // Use of this source code is governed by a BSD-style license that can be
36 // Parse the text expectations, and if no error is encountered,
45 // Query error messages from any expectations that weren't used before being queried.
48 // Get the test expectation of a given test on a given bot.
76 // Query a list of any expectations that were's used before being queried.
/third_party/skia/third_party/externals/angle2/src/tests/
Dangle_end2end_tests_main.cpp3 // Use of this source code is governed by a BSD-style license that can be
14 // GoogleTest relies heavily on static initialization to register test functions. This can
17 // before the test launcher starts. This is a safer and generally better way to initialize
18 // tests. It's also more similar to how the dEQP Test harness works. In the future we should
37 std::cerr << "Unable to find test expectations path (" << kTestExpectationsPath << ")\n"; in main()
41 // end2end test expectations only allow SKIP at the moment. in main()
/third_party/skia/third_party/externals/angle2/src/tests/deqp_support/
DREADME.md16 For every set of dEQP tests, for example GLES3 tests on the Vulkan backend, an expectations file
17 exists to let the test harness know which tests it should skip (as they are known to crash), or
18 expect to see failed. Warnings are generated if a test unexpectedly passes, but an unexpected
21 While developing a feature, or testing on a new platform, the expectations files can be modified to
40 `TEST_NAME` can be a specific test name, or set of test names using `'*'` as wildcard anywhere in
44 3445 : dEQP-GLES31.functional.ssbo.layout.random.all_shared_buffer.48 = SKIP
47 1442 OPENGL : dEQP-GLES31.functional.separate_shader.* = SKIP
48 1442 D3D11 : dEQP-GLES31.functional.separate_shader.* = SKIP
51 …3726 VULKAN ANDROID : dEQP-GLES31.functional.synchronization.inter_call.without_memory_barrier.*at…
53 // Failing test in Nvidia's OpenGL implementation on windows:
[all …]

1234567891011