mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-22 12:42:28 +00:00
remove outdated tests
This commit is contained in:
parent
63567f5480
commit
9c7f681e3d
13 changed files with 0 additions and 102 deletions
|
@ -4,14 +4,7 @@ use trybuild::TestCases;
|
|||
#[ignore]
|
||||
fn trybuild_ui() {
|
||||
let t = TestCases::new();
|
||||
|
||||
// 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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#[macro_use]
|
||||
extern crate gotham_restful;
|
||||
|
||||
#[derive(OpenapiType)]
|
||||
enum Food {
|
||||
Pasta,
|
||||
Pizza { pineapple: bool },
|
||||
Rice,
|
||||
Other(String)
|
||||
}
|
||||
|
||||
fn main() {}
|
|
@ -1,11 +0,0 @@
|
|||
error: #[derive(OpenapiType)] does not support enum variants with fields
|
||||
--> $DIR/enum_with_fields.rs:7:2
|
||||
|
|
||||
7 | Pizza { pineapple: bool },
|
||||
| ^^^^^
|
||||
|
||||
error: #[derive(OpenapiType)] does not support enum variants with fields
|
||||
--> $DIR/enum_with_fields.rs:9:2
|
||||
|
|
||||
9 | Other(String)
|
||||
| ^^^^^
|
|
@ -1,10 +0,0 @@
|
|||
#[macro_use]
|
||||
extern crate gotham_restful;
|
||||
|
||||
#[derive(OpenapiType)]
|
||||
struct Foo {
|
||||
#[openapi(nullable = "yes, please")]
|
||||
bar: String
|
||||
}
|
||||
|
||||
fn main() {}
|
|
@ -1,5 +0,0 @@
|
|||
error: Expected bool
|
||||
--> $DIR/nullable_non_bool.rs:6:23
|
||||
|
|
||||
6 | #[openapi(nullable = "yes, please")]
|
||||
| ^^^^^^^^^^^^^
|
|
@ -1,10 +0,0 @@
|
|||
#[macro_use]
|
||||
extern crate gotham_restful;
|
||||
|
||||
#[derive(OpenapiType)]
|
||||
struct Foo {
|
||||
#[openapi(rename = 42)]
|
||||
bar: String
|
||||
}
|
||||
|
||||
fn main() {}
|
|
@ -1,5 +0,0 @@
|
|||
error: Expected string literal
|
||||
--> $DIR/rename_non_string.rs:6:21
|
||||
|
|
||||
6 | #[openapi(rename = 42)]
|
||||
| ^^
|
|
@ -1,7 +0,0 @@
|
|||
#[macro_use]
|
||||
extern crate gotham_restful;
|
||||
|
||||
#[derive(OpenapiType)]
|
||||
struct Foo(String);
|
||||
|
||||
fn main() {}
|
|
@ -1,5 +0,0 @@
|
|||
error: #[derive(OpenapiType)] does not support unnamed fields
|
||||
--> $DIR/tuple_struct.rs:5:11
|
||||
|
|
||||
5 | struct Foo(String);
|
||||
| ^^^^^^^^
|
|
@ -1,10 +0,0 @@
|
|||
#[macro_use]
|
||||
extern crate gotham_restful;
|
||||
|
||||
#[derive(OpenapiType)]
|
||||
union IntOrPointer {
|
||||
int: u64,
|
||||
pointer: *mut String
|
||||
}
|
||||
|
||||
fn main() {}
|
|
@ -1,5 +0,0 @@
|
|||
error: #[derive(OpenapiType)] only works for structs and enums
|
||||
--> $DIR/union.rs:5:1
|
||||
|
|
||||
5 | union IntOrPointer {
|
||||
| ^^^^^
|
|
@ -1,10 +0,0 @@
|
|||
#[macro_use]
|
||||
extern crate gotham_restful;
|
||||
|
||||
#[derive(OpenapiType)]
|
||||
struct Foo {
|
||||
#[openapi(like = "pizza")]
|
||||
bar: String
|
||||
}
|
||||
|
||||
fn main() {}
|
|
@ -1,5 +0,0 @@
|
|||
error: Unknown key
|
||||
--> $DIR/unknown_key.rs:6:12
|
||||
|
|
||||
6 | #[openapi(like = "pizza")]
|
||||
| ^^^^
|
Loading…
Add table
Reference in a new issue