expect
A simple assertion library that you probably shouldn't use. (by pkg)
subx
An experimental test library written with the go generics experiment. (by smyrman)
expect | subx | |
---|---|---|
1 | 1 | |
132 | 6 | |
0.8% | - | |
0.0 | 0.0 | |
over 4 years ago | over 2 years ago | |
Go | Go | |
BSD 2-clause "Simplified" License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
expect
Posts with mentions or reviews of expect.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-25.
-
Go generics beyond the playground
We have to pass in the t parameter. It's a minor inconvenience, but enough for Dave Cheney to write a quite interesting package for solving it. Not recommended for production use, I might add.
subx
Posts with mentions or reviews of subx.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-25.
-
Go generics beyond the playground
In this article, I will go through how I re-wrote a test matching library from scratch with generics as part of the tool-box. My hope is that this will inspire you to do your own experiments with Go generics beyond the playground and write something potentially useful. Only then, can we truly see if generics itself, is going to be useful in Go. If you want, you could use the library in this article for testing your experiments; or you can extend the library and do a pull request.
What are some alternatives?
When comparing expect and subx you can also consider the following projects:
go - The Go programming language
Testify - A toolkit with common assertions and mocks that plays nicely with the standard library
gomega - Ginkgo's Preferred Matcher Library
subtest - A utility for generating runnable sub-tests in Go