-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression tests for qualified names in codegen
For now only ensure that a locally defined `Result` type or `Send` trait do not affect the generated code.
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Local types overriding the stdlib Result should not affect generated code | ||
|
||
type Result<T> = std::result::Result<T, ()>; | ||
|
||
#[derive(juniper::GraphQLInputObject)] | ||
#[graphql(name = "UserInformation")] | ||
pub struct Update { | ||
pub email: Option<String>, | ||
pub username: Option<String>, | ||
} | ||
|
||
pub fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Local types overriding the stdlib Send should not affect generated code | ||
|
||
trait Send {} | ||
|
||
#[derive(juniper::GraphQLInputObject)] | ||
#[graphql(name = "UserInformation")] | ||
pub struct Update { | ||
pub email: Option<String>, | ||
pub username: Option<String>, | ||
} | ||
|
||
pub fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters