-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix plugin test failures #2109
Fix plugin test failures #2109
Conversation
|
@@ -985,7 +985,7 @@ public void testAnonymousRecordsAsFieldType() { | |||
|
|||
diagnostic = diagnosticIterator.next(); | |||
message = getErrorMessage(CompilationDiagnostic.INVALID_ANONYMOUS_FIELD_TYPE, | |||
"record {|string name; int age;|}", "Query.class.profile"); | |||
"record {|string name; int age;|}", "Query.'class.profile"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This quote is invalid. Is there a place we missed to escape?
"record {|string name; int age;|}", "Query.'class.profile"); | |
"record {|string name; int age;|}", "Query.class.profile"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ThisaruGuruge, this is compile time error, as the resource path has the quote, it is now visible in errors also. Runtime behavior is not changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a discussion with @DimuthuMadushan .. will reevaluate
@@ -1044,7 +1044,7 @@ public void testInvalidUseOfReservedFederatedTypeNames() { | |||
Iterator<Diagnostic> diagnosticIterator = diagnosticResult.errors().iterator(); | |||
|
|||
Diagnostic diagnostic = diagnosticIterator.next(); | |||
String message = getErrorMessage(CompilationDiagnostic.INVALID_USE_OF_RESERVED_TYPE_AS_OUTPUT_TYPE, "Query.any", | |||
String message = getErrorMessage(CompilationDiagnostic.INVALID_USE_OF_RESERVED_TYPE_AS_OUTPUT_TYPE, "Query.'any", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
Purpose
Relates to #2107
Examples
Checklist
commons
package changes (if there are any, please update the GraphQL version in GraphQL tools and Ballerina dev tools)compiler
package changes (if there are any, please update the GraphQL version in Ballerina dev tools)