Skip to content
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

Add test for arg array typing #4352

Merged
merged 3 commits into from
Oct 28, 2021

Conversation

benmccallum
Copy link
Collaborator

Improves the test around array args in v12.

(I added this piece for v11 and it fails).

@benmccallum benmccallum added the 🎬 ready Ready to merge label Oct 27, 2021
@benmccallum benmccallum added the 👓 ready-for-review The PR is ready for review. label Oct 27, 2021
@@ -81,6 +81,19 @@ public async Task InvokeAsync(IMiddlewareContext context)
{
throw new Exception();
}

if (context.Selection.Field.Name.Value.StartsWith("array"))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In v11, arrays are treated as lists, but the arg def also says it's a list, so it was passing the check above.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the runtime type is an array? Or what is the issue?

@sonarcloud
Copy link

sonarcloud bot commented Oct 27, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@michaelstaib michaelstaib removed the 👓 ready-for-review The PR is ready for review. label Oct 28, 2021
@michaelstaib michaelstaib merged commit e928189 into main Oct 28, 2021
@michaelstaib michaelstaib deleted the benmc/4350-v12-array-as-list-testcoverage branch October 28, 2021 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants