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.

C# 9 record types show as a miss

See original GitHub issue

As you can see on line 32, my tests are running the PathCount constructor (and are elsewhere calling both getters), but is being registered as a miss.

image

https://codecov.io/gh/rubberduck203/GitNStats/src/116f2b93ef887097a8c0aac8b2ef7978b2905bb1/src/gitnstats.core/Analysis.cs

Version Info

  • Target Framework: .net5.0
  • coverlet.collector: 1.3.0
  • coverlet.msbuild: 2.9.0

If I have some time tomorrow, I’ll try to create an MVCE.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

1reaction
rubberduck203commented, Dec 27, 2020

@MarcoRossignoli I think I’ll have some time tomorrow to test it out. I’ll get back to you.

0reactions
rubberduck203commented, Dec 28, 2020

Done! I wasn’t sure if you wanted to leave it open until it was released or not. Thanks for the great tools!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Records - C# 9.0 draft feature specifications
This feature specification describes records. Records are reference types that provide value based equality semantics.
Read more >
Do C#9 Record Types Take Longer to Perform Equality ...
We noticed that equality comparison is slower with record types than class types that are otherwise identical. Why is this? Is GetHashCode ...
Read more >
What's new in C# 9.0 - C# Guide
C# 9.0 introduces record types. You use the record keyword to define a reference type that provides built-in functionality for encapsulating ...
Read more >
Record Types In C# 9 - NET Core Tutorials
The gist of a record type is that it provides an easier way to use the immutability features within C# 9 (init) and...
Read more >
Pattern matching and record types in C# 9
The following listing shows how you can use record types to model an Order . To keep things simple, I'm assuming that an...
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