| /third_party/typescript/tests/baselines/reference/ |
| D | objectLiteralExcessProperties.types | 2 interface Book { 12 var b1: Book = { forword: "oops" }; 13 >b1 : Book 18 var b2: Book | string = { foreward: "nope" }; 19 >b2 : string | Book 24 var b3: Book | (Book[]) = [{ foreword: "hello" }, { forwards: "back" }]; 25 >b3 : Book | Book[] 34 var b4: Book & Cover = { foreword: "hi", colour: "blue" }; 35 >b4 : Book & Cover 42 var b5: Book & Cover = { foreward: "hi", color: "blue" }; [all …]
|
| D | objectLiteralExcessProperties.js | 2 interface Book { 10 var b1: Book = { forword: "oops" }; 12 var b2: Book | string = { foreward: "nope" }; 14 var b3: Book | (Book[]) = [{ foreword: "hello" }, { forwards: "back" }]; 16 var b4: Book & Cover = { foreword: "hi", colour: "blue" }; 18 var b5: Book & Cover = { foreward: "hi", color: "blue" }; 20 var b6: Book & Cover = { foreword: "hi", color: "blue", price: 10.99 }; 22 var b7: Book & number = { foreword: "hi", price: 10.99 }; 26 var b9: Book | Book[] = { forewarned: "still no" }; 38 function test<T extends IFoo>() { [all …]
|
| D | objectLiteralExcessProperties.symbols | 2 interface Book { 3 >Book : Symbol(Book, Decl(objectLiteralExcessProperties.ts, 0, 0)) 6 >foreword : Symbol(Book.foreword, Decl(objectLiteralExcessProperties.ts, 0, 16)) 16 var b1: Book = { forword: "oops" }; 18 >Book : Symbol(Book, Decl(objectLiteralExcessProperties.ts, 0, 0)) 21 var b2: Book | string = { foreward: "nope" }; 23 >Book : Symbol(Book, Decl(objectLiteralExcessProperties.ts, 0, 0)) 26 var b3: Book | (Book[]) = [{ foreword: "hello" }, { forwards: "back" }]; 28 >Book : Symbol(Book, Decl(objectLiteralExcessProperties.ts, 0, 0)) 29 >Book : Symbol(Book, Decl(objectLiteralExcessProperties.ts, 0, 0)) [all …]
|
| D | objectLiteralExcessProperties.errors.txt | 1 …essProperties.ts(9,18): error TS2322: Type '{ forword: string; }' is not assignable to type 'Book'. 2 …Object literal may only specify known properties, but 'forword' does not exist in type 'Book'. Did… 3 …es.ts(11,27): error TS2322: Type '{ foreward: string; }' is not assignable to type 'string | Book'. 4 …Object literal may only specify known properties, but 'foreward' does not exist in type 'Book'. Di… 5 …sProperties.ts(13,53): error TS2322: Type '{ forwards: string; }' is not assignable to type 'Book'. 6 Object literal may only specify known properties, and 'forwards' does not exist in type 'Book'. 7 …rror TS2322: Type '{ foreword: string; colour: string; }' is not assignable to type 'Book & Cover'. 8 …Object literal may only specify known properties, but 'colour' does not exist in type 'Book & Cove… 9 …error TS2322: Type '{ foreward: string; color: string; }' is not assignable to type 'Book & Cover'. 10 …Object literal may only specify known properties, but 'foreward' does not exist in type 'Book & Co… [all …]
|
| /third_party/rust/rust/src/tools/rustbook/src/ |
| D | main.rs | 14 let d_arg = arg!(-d --"dest-dir" <DEST_DIR> in main() 15 "The output directory for your book\n(Defaults to ./book when omitted)") in main() 19 let dir_arg = arg!([dir] "Root directory for the book\n\ in main() 24 .about("Build a book with mdBook") in main() 31 .about("Build the book from the markdown files") in main() 36 Command::new("test") in main() 37 .about("Tests that a book's Rust code samples compile") in main() 49 Some(("test", sub_matches)) => { in main() 50 if let Err(e) = test(sub_matches) { in main() 59 pub fn build(args: &ArgMatches) -> Result3<()> { in build() [all …]
|
| /third_party/typescript/tests/cases/compiler/ |
| D | objectLiteralExcessProperties.ts | 1 interface Book { interface 9 var b1: Book = { forword: "oops" }; 11 var b2: Book | string = { foreward: "nope" }; 13 var b3: Book | (Book[]) = [{ foreword: "hello" }, { forwards: "back" }]; 15 var b4: Book & Cover = { foreword: "hi", colour: "blue" }; 17 var b5: Book & Cover = { foreward: "hi", color: "blue" }; 19 var b6: Book & Cover = { foreword: "hi", color: "blue", price: 10.99 }; 21 var b7: Book & number = { foreword: "hi", price: 10.99 }; 25 var b9: Book | Book[] = { forewarned: "still no" }; 37 function test<T extends IFoo>() { function [all …]
|
| /third_party/libxml2/ |
| D | Fix-CVE-2025-49795-null-pointer-dereference-leading-to-DoS.patch | 3 Date: Sat, 21 Jun 2025 12:11:30 -0400 6 (CVE-2025-49795) 9 --- 11 runtest.c | 11 ++++++++--- 13 test/schematron/zvon16.sct | 7 +++++++ 14 test/schematron/zvon16_0.xml | 5 +++++ 15 5 files changed, 28 insertions(+), 3 deletions(-) 17 create mode 100644 test/schematron/zvon16.sct 18 create mode 100644 test/schematron/zvon16_0.xml 20 diff --git a/result/schematron/zvon16_0.err b/result/schematron/zvon16_0.err [all …]
|
| /third_party/rust/crates/bindgen/.github/workflows/ |
| D | deploy-book.yml | 1 name: Deploy book 6 - main 9 deploy-book: 10 runs-on: ubuntu-latest 12 - uses: actions/checkout@v4 14 persist-credentials: false 16 - name: Test book 18 …curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.5/mdbook-v0.4.5-x86_64-unknown-… 19 ./mdbook build book 20 ./mdbook test book [all …]
|
| D | bindgen.yml | 6 - main 9 - main 12 - main 15 rustfmt-clippy: 16 runs-on: ubuntu-latest 19 - uses: actions/checkout@v4 21 - name: Install stable 22 uses: dtolnay/rust-toolchain@master 24 # TODO: Should ideally be stable, but we use some nightly-only 29 - name: Run rustfmt [all …]
|
| /third_party/rust/rust/src/doc/rustc/src/tests/ |
| D | index.md | 3 `rustc` has a built-in facility for building and running tests for a crate. 5 Chapter] of the Rust Programming Language book. 7 Tests are written as free functions with the [`#[test]` 8 attribute][attribute-test]. For example: 11 #[test] 19 with a non-zero value. 21 By passing the [`--test` option] to `rustc`, the compiler will build the crate 23 crate. The `--test` flag will make the following changes: 27 * Links the executable with [`libtest`], the test harness that is part of the 29 * Synthesizes a [`main` function] which will process command-line arguments [all …]
|
| /third_party/rust/rust/src/tools/clippy/book/src/development/infrastructure/ |
| D | book.md | 1 # The Clippy Book 3 This document explains how to make additions and changes to the Clippy book, the 4 guide to Clippy that you're reading right now. The Clippy book is formatted with 6 [mdBook](https://github.com/rust-lang/mdBook). 8 - [Get mdBook](#get-mdbook) 9 - [Make changes](#make-changes) 13 While not strictly necessary since the book source is simply Markdown text 14 files, having mdBook locally will allow you to build, test and serve the book 22 See the mdBook [installation](https://github.com/rust-lang/mdBook#installation) 27 The book's [all …]
|
| /third_party/rust/rust/src/tools/linkchecker/ |
| D | linkcheck.sh | 3 # This is a script that can be used in each book's CI to validate links using 4 # the same tool as rust-lang/rust. 6 # This requires the rust-docs rustup component to be installed in the nightly 10 # ./linkcheck.sh <name-of-book> 14 # -i "Iterative" mode. The script will not clean up after it is done so 15 # you can inspect the result, and re-run more quickly. 17 # --all Check all books. This can help make sure you don't break links 18 # from other books into your book. 20 # --path <book-path> 21 # Path to the root directory for the book. Default to the current [all …]
|
| /third_party/rust/rust/src/tools/ |
| D | publish_toolstate.py | 2 # -*- coding: utf-8 -*- 5 # confused with publishing the test results, which happens in `src/bootstrap/toolstate.rs`). 29 # List of people to ping when the status of a tool or a book changed. 30 # These should be collaborators of the rust-lang/rust repository (with at least 33 'book': {'carols10cents'}, 36 'rust-by-example': {'marioidival'}, 37 'embedded-book': {'adamgreig', 'andre-richter', 'jamesmunns', 'therealprof'}, 38 'edition-guide': {'ehuss'}, 39 'rustc-dev-guide': {'spastorino', 'amanjeev', 'JohnTitor'}, 43 'book': ['C-bug'], [all …]
|
| /third_party/rust/rust/src/tools/clippy/.github/workflows/ |
| D | remark.yml | 6 - auto 7 - try 10 - '**.md' 14 runs-on: ubuntu-latest 18 - name: Checkout 21 - name: Setup Node.js 22 uses: actions/setup-node@v3 24 node-version: '14.x' 26 - name: Install remark 27 …run: npm install remark-cli remark-lint remark-lint-maximum-line-length remark-preset-lint-recomme… [all …]
|
| /third_party/rust/rust/src/ci/docker/host-x86_64/x86_64-gnu-tools/ |
| D | checktools.sh | 3 set -eu 7 # Try to test the toolstate-tracked tools and store the build/test success in the TOOLSTATE_FILE. 10 python3 "$X_PY" test --stage 2 --no-fail-fast \ 11 src/doc/book \ 14 src/doc/rust-by-example \ 15 src/doc/embedded-book \ 16 src/doc/edition-guide \ 18 set -e 23 # Test remaining tools that must pass. 24 python3 "$X_PY" test --stage 2 check-tools [all …]
|
| /third_party/unity/extras/fixture/ |
| D | readme.md | 3 This Framework is an optional add-on to Unity. 5 This framework adds the concepts of test groups and gives finer control of your tests over the comm… 7 … is primarily supplied for those working through James Grenning's book on Embedded Test Driven Dev… 13 This is to make it simple for those trying to follow along with James' book. 20 By default the test executables produced by Unity Fixtures run all tests once, but the behavior can… 21 Run the test executable with the `--help` flag for more information. 23 …he end of the help message, typically to point to project-specific or company-specific unit test d… 26 #define UNITY_CUSTOM_HELP_MSG "If any test fails see https://example.com/troubleshooting"
|
| /third_party/rust/rust/src/librustdoc/ |
| D | lint.rs | 9 /// is "allowed". Depending if we run in test mode or not, we want some of them to be at their 24 ) -> (Vec<(String, lint::Level)>, FxHashMap<lint::LintId, lint::Level>) in init_lints() 26 F: Fn(&lint::Lint) -> Option<(String, lint::Level)>, in init_lints() 41 // Permit feature-gated lints to avoid feature errors when trying to in init_lints() 80 /// intra-doc link targets. This is a `rustdoc` only lint, see the 81 /// documentation in the [rustdoc book]. 83 /// [rustdoc book]: ../../../rustdoc/lints.html#broken_intra_doc_links 86 "failures in resolving intra-doc link targets" 92 /// documentation in the [rustdoc book]. 94 /// [rustdoc book]: ../../../rustdoc/lints.html#private_intra_doc_links [all …]
|
| /third_party/rust/rust/compiler/rustc_error_codes/src/error_codes/ |
| D | E0549.md | 8 #![stable(since = "1.0.0", feature = "test")] 22 #![stable(since = "1.0.0", feature = "test")] 24 #[stable(since = "1.0.0", feature = "test")] 32 See the [How Rust is Made and “Nightly Rust”][how-rust-made-nightly] appendix 33 of the Book and the [Stability attributes][stability-attributes] section of the 36 [how-rust-made-nightly]: https://doc.rust-lang.org/book/appendix-07-nightly-rust.html 37 [stability-attributes]: https://rustc-dev-guide.rust-lang.org/stability.html
|
| D | E0544.md | 10 #[stable(feature = "test", since = "2.0.0")] // invalid 20 #[stable(feature = "test", since = "2.0.0")] // ok! 24 See the [How Rust is Made and “Nightly Rust”][how-rust-made-nightly] appendix 25 of the Book and the [Stability attributes][stability-attributes] section of the 28 [how-rust-made-nightly]: https://doc.rust-lang.org/book/appendix-07-nightly-rust.html 29 [stability-attributes]: https://rustc-dev-guide.rust-lang.org/stability.html
|
| D | E0543.md | 7 #![stable(since = "1.0.0", feature = "test")] 20 #![stable(since = "1.0.0", feature = "test")] 30 See the [How Rust is Made and “Nightly Rust”][how-rust-made-nightly] appendix 31 of the Book and the [Stability attributes][stability-attributes] section of the 34 [how-rust-made-nightly]: https://doc.rust-lang.org/book/appendix-07-nightly-rust.html 35 [stability-attributes]: https://rustc-dev-guide.rust-lang.org/stability.html
|
| D | E0545.md | 7 #![stable(since = "1.0.0", feature = "test")] 21 #![stable(since = "1.0.0", feature = "test")] 30 See the [How Rust is Made and “Nightly Rust”][how-rust-made-nightly] appendix 31 of the Book and the [Stability attributes][stability-attributes] section of the 34 [how-rust-made-nightly]: https://doc.rust-lang.org/book/appendix-07-nightly-rust.html 35 [stability-attributes]: https://rustc-dev-guide.rust-lang.org/stability.html
|
| D | E0547.md | 7 #![stable(since = "1.0.0", feature = "test")] 20 #![stable(since = "1.0.0", feature = "test")] 32 See the [How Rust is Made and “Nightly Rust”][how-rust-made-nightly] appendix 33 of the Book and the [Stability attributes][stability-attributes] section of the 36 [how-rust-made-nightly]: https://doc.rust-lang.org/book/appendix-07-nightly-rust.html 37 [stability-attributes]: https://rustc-dev-guide.rust-lang.org/stability.html
|
| D | E0546.md | 7 #![stable(since = "1.0.0", feature = "test")] 20 #![stable(since = "1.0.0", feature = "test")] 29 See the [How Rust is Made and “Nightly Rust”][how-rust-made-nightly] appendix 30 of the Book and the [Stability attributes][stability-attributes] section of the 33 [how-rust-made-nightly]: https://doc.rust-lang.org/book/appendix-07-nightly-rust.html 34 [stability-attributes]: https://rustc-dev-guide.rust-lang.org/stability.html
|
| /third_party/rust/rust/src/bootstrap/ |
| D | doc.rs | 4 //! for the Rust project. This notably includes suites like the rust book, the 32 macro_rules! book { macro 44 fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { 72 // NOTE: When adding a book here, make sure to ALSO build the book by 74 // NOTE: Make sure to add the corresponding submodule when adding a new book. 77 book!( 79 ClippyBook, "src/tools/clippy/book", "clippy"; 80 EditionGuide, "src/doc/edition-guide", "edition-guide", submodule; 81 EmbeddedBook, "src/doc/embedded-book", "embedded-book", submodule; 84 RustByExample, "src/doc/rust-by-example", "rust-by-example", submodule; [all …]
|
| /third_party/mindspore/mindspore-src/source/tests/ut/python/dataset/ |
| D | test_datasets_amazon_review.py | 1 # Copyright 2021-2022 Huawei Technologies Co., Ltd 7 # http://www.apache.org/licenses/LICENSE-2.0 31 Feature: Test AmazonReviewPolarity Dataset. 36 data = ds.AmazonReviewDataset(POLARITY_DIR, usage='test', shuffle=False) 46 Feature: Test AmazonReviewFull Dataset. 51 data = ds.AmazonReviewDataset(FULL_DIR, usage='test', shuffle=False) 61 Feature: Test get the AmazonReview Dataset. 65 data = ds.AmazonReviewDataset(FULL_DIR, usage='test', shuffle=False) 72 "4", "delightful", "a funny book!", 78 Feature: Test AmazonReviewPolarity Dataset(usage=all). [all …]
|