Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
all: test that all examples run on golang.org, i.e. the playground #19825
Right now, examples are only run via
For instance, see #19823. That example depends on its own test file,
There should be a mechanism to ensure that all of the examples run on the golang.org docs too. In other words, that they pass when executed in the playground.
As to why it passes,
Maybe the playground should use the same packaged filesystem?
This isn't up to date, but I did a run through earlier this year: #9679 (comment)
Since there have been improvements to how go/doc extracts examples, allowing more to be playable, some fixed examples, and more examples overall, someone's just going to need to run through each example and hit play (preferably a trybot).
I don't have a count but it's more than 1, so it's enough to warrant attention and action.