mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-05-10 08:30:42 +00:00
add trybuild tests for OpenapiType and Resource derive macros
This commit is contained in:
parent
9ed24c9bcb
commit
6680887b84
16 changed files with 149 additions and 3 deletions
|
@ -15,4 +15,16 @@ fn trybuild_ui()
|
|||
t.compile_fail("tests/ui/method_too_few_args.rs");
|
||||
t.compile_fail("tests/ui/method_too_many_args.rs");
|
||||
t.compile_fail("tests/ui/method_unsafe.rs");
|
||||
t.compile_fail("tests/ui/resource_unknown_method.rs");
|
||||
|
||||
// require the openapi feature
|
||||
if cfg!(feature = "openapi")
|
||||
{
|
||||
t.compile_fail("tests/ui/openapi_type_enum_with_fields.rs");
|
||||
t.compile_fail("tests/ui/openapi_type_nullable_non_bool.rs");
|
||||
t.compile_fail("tests/ui/openapi_type_rename_non_string.rs");
|
||||
t.compile_fail("tests/ui/openapi_type_tuple_struct.rs");
|
||||
t.compile_fail("tests/ui/openapi_type_union.rs");
|
||||
t.compile_fail("tests/ui/openapi_type_unknown_key.rs");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue