testify
testify copied to clipboard
Add `Cap` and `Capf` assertions
To assert capacity of Array, Slice and Channel types, add Cap and Capf assertions.
PR: #1333
That would be just a convenience for a niche use case. I don't think that it is worth extending the API surface at this point.
I would like to have this method in the library, I was surprised not to find it when I needed it, which is what brought me here.