File: macrotest.rs

package info (click to toggle)
rust-derive-deftly 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,652 kB
  • sloc: perl: 1,032; sh: 373; python: 227; makefile: 11
file content (19 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#[allow(unused_imports)]
use derive_deftly_tests::*;

// We don't run this unless the CI explicitly enables it.
// That's done only for the "cargo-test" test,
// ie our pinned nightly, with full features enabled.
//
// We don't do expansion match tests other than on our pinned compiler.
//
// We don't do these tests without all derive-deftly features enabled.
// So there is n testing of what feature controls what.
// That's OK, we're not going to have very many features.
#[cfg(feature = "macrotest")]
#[test]
pub fn macrotest_expand() {
    for path in list_expand_test_paths_for_macrotest() {
        macrotest::expand_args(path, ["--all-features"]);
    }
}