2022-08-27 13:14:16 +01:00
|
|
|
#[rustversion::stable(1.59)] // MSRV
|
2020-09-13 16:31:08 +01:00
|
|
|
#[test]
|
|
|
|
fn compile_macros() {
|
|
|
|
let t = trybuild::TestCases::new();
|
|
|
|
|
|
|
|
t.pass("tests/trybuild/simple.rs");
|
|
|
|
t.compile_fail("tests/trybuild/simple-fail.rs");
|
2020-09-16 23:37:41 +02:00
|
|
|
|
|
|
|
t.pass("tests/trybuild/route-ok.rs");
|
|
|
|
t.compile_fail("tests/trybuild/route-missing-method-fail.rs");
|
2020-10-19 11:52:05 +09:00
|
|
|
t.compile_fail("tests/trybuild/route-duplicate-method-fail.rs");
|
|
|
|
t.compile_fail("tests/trybuild/route-unexpected-method-fail.rs");
|
2021-08-31 02:20:40 +05:30
|
|
|
t.compile_fail("tests/trybuild/route-malformed-path-fail.rs");
|
2021-02-24 12:26:56 +00:00
|
|
|
|
2022-07-04 06:31:49 +02:00
|
|
|
t.pass("tests/trybuild/routes-ok.rs");
|
|
|
|
t.compile_fail("tests/trybuild/routes-missing-method-fail.rs");
|
|
|
|
t.compile_fail("tests/trybuild/routes-missing-args-fail.rs");
|
|
|
|
|
2021-02-24 12:26:56 +00:00
|
|
|
t.pass("tests/trybuild/docstring-ok.rs");
|
2021-10-19 17:30:32 +01:00
|
|
|
|
|
|
|
t.pass("tests/trybuild/test-runtime.rs");
|
2020-10-19 11:52:05 +09:00
|
|
|
}
|