Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/cover: missing whole switch body in coverage #32200
Navigate to backtrack.go and scroll down.
/cc @robpike in case you are interested
As a diversion, I took a quick look at this, and managed to reproduce this in cmd/cover's tests.
Adding this peculiar set of lines before the switch—a goto, a label, another goto, and another label—apparently causes
edit: I originally had an unnecessary if in there, now removed.