You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently looking in to this issue. I have a solution in place. I run all the tests
in $GOROOT/test and I get this output:
switch.go:400: cannot fallthrough final case in switch
which is the error string I am throwing when a fallthrough is detected in the final
case. The error is correct, but I am not sure how to proceed with the test file itself.
As of now, it completely fails to compile, as it should, however, it seems like a bad
idea to simply remove the code entirely to make it build.
My question, then: is it possible for me to have the test expect this statement to fail
to compile? What would be the proper way to proceed and still have test coverage for
this particular case?
Thanks!
The text was updated successfully, but these errors were encountered: