corbym / gocrest

GoCrest - Hamcrest-like matchers for Go
BSD 3-Clause "New" or "Revised" License
102 stars 6 forks source link

Generics #8

Closed corbym closed 1 year ago

corbym commented 1 year ago

v.1.1.0 - generics

Changes all the matchers to use generics instead of reflection. Some still use a bit of reflection, e.g. TypeName etc.

Other major changes:

Some idiosyncrasies with the generic types do exist, but this is language specific;

See the matcher_test.go file for full usage.

coveralls commented 1 year ago

Coverage Status

Coverage: 100.0%. Remained the same when pulling 4ea9cb688925b2bd7944e33c1c55519b12b8b298 on generics into 38dfeaf3bfcde2bfd787e2f8bab6a49785b7dc03 on master.