denyhosts/clamav/libclamav_rust/.cargo/vendor/pin-project/tests
2023-01-14 18:28:39 +08:00
..
auxiliary 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
expand 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
include 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
ui 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
cfg.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
compiletest.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
drop_order.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
expandtest.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
lint.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
pin_project.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
pinned_drop.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
proper_unpin.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
README.md 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
repr_packed.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00
unsafe_unpin.rs 更新libclamav库1.0.0版本 2023-01-14 18:28:39 +08:00

Tests

To run all tests, run the following command:

cargo +nightly test --all

UI tests (ui, compiletest.rs)

This checks errors detected by the macro or the Rust compiler in the resulting expanded code.

To run this test, run the following command:

cargo +nightly test --test compiletest

Locally, this test updates the files in the ui directory if there are changes to the generated code. If there are any changes to the files in the ui directory after running the test, please commit them.

See also trybuild documentation.

Expansion tests (expand, expandtest.rs)

Similar to ui tests, but instead of checking the compiler output, this checks the code generated by macros.

See examples for descriptions of what the generated code does, and why it needs to be generated.

To run this test, run the following command:

cargo +nightly test --test expandtest

Locally, this test updates the files in the expand directory if there are changes to the generated code. If there are any changes to the files in the expand directory after running the test, please commit them.

See also macrotest documentation.