2022-08-27 12:14:16 +00:00
|
|
|
#[rustversion::stable(1.59)] // MSRV
|
2020-09-13 15:31:08 +00: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 21:37:41 +00:00
|
|
|
|
|
|
|
t.pass("tests/trybuild/route-ok.rs");
|
|
|
|
t.compile_fail("tests/trybuild/route-missing-method-fail.rs");
|
2020-10-19 02:52:05 +00:00
|
|
|
t.compile_fail("tests/trybuild/route-duplicate-method-fail.rs");
|
2021-08-30 20:50:40 +00:00
|
|
|
t.compile_fail("tests/trybuild/route-malformed-path-fail.rs");
|
2021-02-24 12:26:56 +00:00
|
|
|
|
2023-02-06 12:40:41 +00:00
|
|
|
t.pass("tests/trybuild/route-custom-method.rs");
|
|
|
|
t.compile_fail("tests/trybuild/route-custom-lowercase.rs");
|
|
|
|
|
2022-07-04 04:31:49 +00: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 16:30:32 +00:00
|
|
|
|
|
|
|
t.pass("tests/trybuild/test-runtime.rs");
|
2020-10-19 02:52:05 +00:00
|
|
|
}
|