検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 193 for tests (0.021 sec.)
Unit testing - Rust By Example 日本語版 17568
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests 12.4. Build Scripts 13. アトリビュート ❱ 13.1. dea ... oal Navy Ayu Rust By Example 日本語版 Unit testing Tests are Rust functions that verify that the non-test c ... whether the results are what we expect. Most unit tests go into a tests mod with the #[cfg(test)] attribut ... t functions are marked with the #[test] attribute. Tests fail when something in the test function panics . ...
https://man.plustar.jp/rust/example/testing/unit_testing.html - [similar]
Integration testing - Rust By Example 日本語版 12201
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests 12.4. Build Scripts 13. アトリビュート ❱ 13.1. dea ... Rust By Example 日本語版 Integration testing Unit tests are testing one module in isolation at a time: the ... y're small and can test private code. Integration tests are external to your crate and use only its public ... rk correctly together. Cargo looks for integration tests in tests directory next to src . File src/lib.rs : ...
https://man.plustar.jp/rust/example/testing/integration_testing.html - [similar]
Tests - Rust By Example 日本語版 9169
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests 12.4. Build Scripts 13. アトリビュート ❱ 13.1. dea ... ットテストはテスト対象のモジュール内に、統合テストは tests/ ディレクトリ内に置きます。 foo ├── Cargo.toml ├── ... src │ └── main.rs │ └── lib.rs └── tests ├── my_test.rs └── my_other_test.rs tests 内の各フ ... target/debug/deps/blah-d3b32b97275ec472 running 3 tests test test_bar ... ok test test_baz ... ok test tes ...
https://man.plustar.jp/rust/example/cargo/test.html - [similar]
Documentation testing - Rust By Example 日本語版 9007
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests 12.4. Build Scripts 13. アトリビュート ❱ 13.1. dea ... ess, so these code blocks are compiled and used as tests. /// First line is a short summary describing func ... b == 0 { panic!("Divide-by-zero error"); } a / b } Tests can be run with cargo test : $ cargo test running ... 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 ...
https://man.plustar.jp/rust/example/testing/doc_testing.html - [similar]
ドキュメンテーション - Rust By Example 日本語版 6823
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests 12.4. Build Scripts 13. アトリビュート ❱ 13.1. dea ... entation in target/doc . Use cargo test to run all tests (including documentation tests), and cargo test -- ... doc to only run documentation tests. These commands will appropriately invoke rustdoc ... = Person::new("John"); john.hello(); } To run the tests, first build the code as a library, then tell rust ...
https://man.plustar.jp/rust/example/meta/doc.html - [similar]
Dev-dependencies - Rust By Example 日本語版 6236
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests 12.4. Build Scripts 13. アトリビュート ❱ 13.1. dea ... Sometimes there is a need to have dependencies for tests (or examples, or benchmarks) only. Such dependenci ... (a: i32, b: i32) -> i32 { a + b } #[cfg(test)] mod tests { use super::*; use pretty_assertions::assert_eq; ...
https://man.plustar.jp/rust/example/testing/dev_dependencies.html - [similar]
Playpen - Rust By Example 日本語版 5725
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests 12.4. Build Scripts 13. アトリビュート ❱ 13.1. dea ... u want mdbook to skip your code when it builds and tests. ```rust,editable,ignore //...place your code here ...
https://man.plustar.jp/rust/example/meta/playpen.html - [similar]
DRY (Don't Repeat Yourself) - Rust By Example 日本語版 5649
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests 12.4. Build Scripts 13. アトリビュート ❱ 13.1. dea ... 1u32); } $ rustc --test dry.rs && ./dry running 3 tests test test::mul_assign ... ok test test::add_assign ...
https://man.plustar.jp/rust/example/macros/dry.html - [similar]
条件の追加 - Rust By Example 日本語版 5312
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests 12.4. Build Scripts 13. アトリビュート ❱ 13.1. dea ...
https://man.plustar.jp/rust/example/attribute/cfg/custom.html - [similar]
cfg - Rust By Example 日本語版 5312
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Cargo ❱ 12.1. Dependencies 12.2. Conventions 12.3. Tests 12.4. Build Scripts 13. アトリビュート ❱ 13.1. dea ...
https://man.plustar.jp/rust/example/attribute/cfg.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT