You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 36ed224bac
Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
2 years ago
..
auxiliary Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago
expand Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago
include Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago
ui Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago
README.md Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago
compiletest.rs Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago
drop_order.rs Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago
expandtest.rs Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago
lint.rs Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago
proper_unpin.rs Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago
test.rs Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 2 years ago

README.md

Tests

Many of the tests in this repository are based on pin-project's 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 pin-project's 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.