Using Subtests in Go (Golang)
What is subtest? Go 1.7 introduced the concept of subtest for better handling of failures, and fine-grained control of which tests to run. It is the standard way of grouping tests that test same function/logic with multiples cases and leads to simpler and more maintainable tests. It used to be mostly done using table-driven test pattern till now.
In this post we’ll write tests for Singly Linked List which we covered in earlier post.
read more