File: tests.rs

package info (click to toggle)
rust-automod 1.0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 128 kB
  • sloc: makefile: 4
file content (15 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This example demonstrates using the automod macro to collect together a
// directory of test cases. Each source file in the 'regression' directory can
// be dedicated to testing an individual numbered issue. As files are added in
// that directory, they automatically become part of the crate without needing
// to be added explicitly to some handwritten list.
//
// To see the tests running:
//
//    cargo test --example tests

mod regression {
    automod::dir!("examples/regression");
}

fn main() {}