1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-22 20:52:27 +00:00

remove outdated tests

This commit is contained in:
Dominic 2021-03-09 20:51:44 +01:00
parent 63567f5480
commit 9c7f681e3d
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
13 changed files with 0 additions and 102 deletions

View file

@ -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");
}
}

View file

@ -1,12 +0,0 @@
#[macro_use]
extern crate gotham_restful;
#[derive(OpenapiType)]
enum Food {
Pasta,
Pizza { pineapple: bool },
Rice,
Other(String)
}
fn main() {}

View file

@ -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)
| ^^^^^

View file

@ -1,10 +0,0 @@
#[macro_use]
extern crate gotham_restful;
#[derive(OpenapiType)]
struct Foo {
#[openapi(nullable = "yes, please")]
bar: String
}
fn main() {}

View file

@ -1,5 +0,0 @@
error: Expected bool
--> $DIR/nullable_non_bool.rs:6:23
|
6 | #[openapi(nullable = "yes, please")]
| ^^^^^^^^^^^^^

View file

@ -1,10 +0,0 @@
#[macro_use]
extern crate gotham_restful;
#[derive(OpenapiType)]
struct Foo {
#[openapi(rename = 42)]
bar: String
}
fn main() {}

View file

@ -1,5 +0,0 @@
error: Expected string literal
--> $DIR/rename_non_string.rs:6:21
|
6 | #[openapi(rename = 42)]
| ^^

View file

@ -1,7 +0,0 @@
#[macro_use]
extern crate gotham_restful;
#[derive(OpenapiType)]
struct Foo(String);
fn main() {}

View file

@ -1,5 +0,0 @@
error: #[derive(OpenapiType)] does not support unnamed fields
--> $DIR/tuple_struct.rs:5:11
|
5 | struct Foo(String);
| ^^^^^^^^

View file

@ -1,10 +0,0 @@
#[macro_use]
extern crate gotham_restful;
#[derive(OpenapiType)]
union IntOrPointer {
int: u64,
pointer: *mut String
}
fn main() {}

View file

@ -1,5 +0,0 @@
error: #[derive(OpenapiType)] only works for structs and enums
--> $DIR/union.rs:5:1
|
5 | union IntOrPointer {
| ^^^^^

View file

@ -1,10 +0,0 @@
#[macro_use]
extern crate gotham_restful;
#[derive(OpenapiType)]
struct Foo {
#[openapi(like = "pizza")]
bar: String
}
fn main() {}

View file

@ -1,5 +0,0 @@
error: Unknown key
--> $DIR/unknown_key.rs:6:12
|
6 | #[openapi(like = "pizza")]
| ^^^^