1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 04:52:28 +00:00
deprecated-gotham-restful/tests/trybuild_ui.rs

18 lines
358 B
Rust
Raw Permalink Normal View History

2020-05-05 19:31:02 +02:00
use trybuild::TestCases;
#[test]
2020-05-05 19:57:13 +02:00
#[ignore]
fn trybuild_ui() {
2020-05-05 19:31:02 +02:00
let t = TestCases::new();
2020-05-05 19:31:02 +02:00
// always enabled
t.compile_fail("tests/ui/endpoint/*.rs");
t.compile_fail("tests/ui/from_body/*.rs");
t.compile_fail("tests/ui/resource/*.rs");
// require the openapi feature
if cfg!(feature = "openapi") {
t.compile_fail("tests/ui/openapi_type/*.rs");
}
2020-05-05 19:57:13 +02:00
}