question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about switch expression with ?? operator

See original GitHub issue

See https://app.codecov.io/gh/graphql-dotnet/parser/blob/master/src/GraphQLParser/ParserContext.Parse.cs All 4 usages of ExpectOneOf (lines 862, 1101, 1114, 1353) are partilly covered though there are tests that call ExpectOneOf with null and non-null values. Why so?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
daveMuellercommented, Feb 9, 2022

I took a quick peek and it really seems to be a bug. I created a simplified repro here: https://github.com/daveMueller/CoverletIssue1292 and I will start working on this.

0reactions
daveMuellercommented, Mar 9, 2022

Closing this because coverlet works as designed. Feel free to reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the Switch Statement with Logical Operators
Basically, JavaScript is trying to compare the expression in the parentheses to the values of the cases. If grade = 92 , grade...
Read more >
Switch Statement in C++
The C++ Switch case statement evaluates a given expression and based on the evaluated value(matching a certain condition), it executes the ...
Read more >
javascript - Switch/case using logic operators such as >= and
Each case branch of a switch statement expects an expression, and the value of the expression will be compared to the initial argument....
Read more >
Evaluate a pattern match expression using the `switch` ...
Learn about the C# `switch` expression that provides switch-like semantics based on pattern matching. You can compute a value based on which ...
Read more >
The switch Statement (The Java™ Tutorials > Learning ...
The switch statement evaluates its expression, then executes all statements that follow the matching case label.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found