Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Go: Subtests and Sub-benchmarks (elliot.land)
42 points by elliotchance on June 18, 2016 | hide | past | favorite | 2 comments


Um, I thought the article would at least provide some real-life examples, i.e. add some value to what's available in the official docs. But the code snippets are copied verbatim from https://tip.golang.org/pkg/testing/#hdr-Subtests_and_Sub_ben... (with no attribution) and the text around them is mostly just reworded. The only thing it adds is maybe exposition; though for this I'd personally argue that the following link is even better: https://tip.golang.org/doc/go1.7


Well, I for one wasn't aware of the new functionality in Go and am grateful the author posted about it.

Because otherwise I wouldn't know what I now know!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: