Expand description
Tests for proc-macro-api
.
§Run
Use cargo test
to run the tests.
§Test-option features
test_*
features are test-option features. Test-option features are used
for enabling optional tests. In order to enable an optional test, enable
the corresponding test-option features.
test_normal
is provided for exhaustiveness, and the tests in it are not optional.test_comp_err_*
will cause a compiling error. It is used for testing the error detecting and the error messages, manually.test_err_*
will be compiled successfully, but specific doc-tests in it will always fail to be compiled. It is used for testing the error detecting and the error messages, manually.
See Cargo.toml for the list of the test-option features.
§Combination of test-options
Compatible test-option features can be enabled together. Incompatible test-option features will cause a compiling error.
A test_comp_err_*
feature should not be enabled together with other
test-option features.
§Examples
cargo test --package proc-macro-api-tests --features test_normal
§SemVer compatibility
The public APIs of the library crate are the test-option features.
The pub
items from the library crate should be treated as a private part of
the crate.
The non-test-option features should be treated as a private part of
the crate.
Macros§
- norm_
t_ alias_ fn_ 0 - norm_
t_ alias_ fn_ 1 - norm_
t_ cc_ 0 - norm_
t_ cc_ 1 - norm_
t_ cc_ 2 - norm_
t_ cc_ 3 - norm_
t_ empty_ rest_ 0 - b
- norm_
t_ full_ seg_ 0 - a b
- norm_
t_ full_ seg_ 1 - a b
- norm_
t_ full_ seg_ 2 - a b
- norm_
t_ no_ as_ 0 - norm_
t_ no_ as_ 1 - norm_
t_ no_ as_ 2 - norm_
t_ no_ as_ 3 - norm_
t_ no_ as_ 4 - norm_
t_ no_ as_ 5 - norm_
t_ no_ as_ 6 - norm_
t_ no_ as_ 7 - norm_
t_ no_ trailing_ comma_ 0 - norm_
t_ one_ prv_ 0 - norm_
t_ one_ rest_ 0 - b
- norm_
t_ one_ rest_ 1 - b
- norm_
t_ one_ rest_ 2 - b
- norm_
t_ one_ rest_ out_ 0 - norm_
t_ seg_ matcher_ 0 - norm_
t_ seg_ matcher_ 1 - norm_
t_ seg_ matcher_ 2_ 0 - norm_
t_ seg_ matcher_ 2_ 1 - norm_
t_ seg_ matcher_ 3_ 0 - norm_
t_ seg_ matcher_ 3_ 1 - norm_
t_ seg_ matcher_ 4_ 0 - norm_
t_ seg_ matcher_ 4_ 1 - norm_
t_ seg_ matcher_ 5_ 0 - norm_
t_ seg_ matcher_ 5_ 1 - norm_
t_ seg_ matcher_ 6_ 0 - norm_
t_ seg_ matcher_ 6_ 1 - norm_
t_ seg_ matcher_ 7_ 0 - norm_
t_ seg_ matcher_ 7_ 1 - norm_
t_ seg_ matcher_ 8_ 0 - norm_
t_ seg_ matcher_ 8_ 1 - norm_
t_ seg_ matcher_ 9_ 0 - norm_
t_ seg_ matcher_ 9_ 1 - norm_
t_ seg_ matcher_ 10_ 0 - norm_
t_ seg_ matcher_ 10_ 1 - norm_
t_ seg_ matcher_ 11_ 0 - norm_
t_ seg_ matcher_ 11_ 1 - norm_
t_ seg_ matcher_ 12_ 0 - norm_
t_ seg_ matcher_ 12_ 1 - norm_
t_ seg_ matcher_ 13_ 0 - norm_
t_ seg_ matcher_ 13_ 1 - norm_
t_ seg_ matcher_ 14_ 0 - norm_
t_ seg_ matcher_ 14_ 1 - norm_
t_ seg_ matcher_ 15_ 0 - norm_
t_ seg_ matcher_ 15_ 1