News for hackers. Stuff that matters.
Re:Unit Testing Is Overrated by kccqzy on Thursday July 09, 2020 @04:58PM (#23785146)
__builtin_unreachable() is your friend.

Better yet, omit that default case, so that in the future when you do add a new value to the enum, the compiler will warn you and force you to add a new case.

But I agree with your general thesis that it's just not worth getting to 100% coverage.

There are no comments on this comment yet.