gojuno / minimock

Powerful mock generation tool for Go programming language
MIT License
574 stars 38 forks source link

feat: Composite generics support #70

Closed defaulterrr closed 1 year ago

defaulterrr commented 1 year ago

Hey there! I noticed that my last PR #67 did not quite cover all possible cases with generic declarations so i followed up with some fixes. I've also implemented Go-based snapshot testing, hope you don't mind!

The general idea right now is to use go/printer package to render constraints references instead of manual traversal and string concatenation

Changelog:

hexdigest commented 1 year ago

Thanks, @defaulterrr

It's in v3.1.2 already