Improvement with diff displaying: when test fails because expectations failed and we used minimock.Anycontext, the diff will show arguments that are different as well as context argument, e.g.
It is very confusing for developers as they think that there is also some issue with context, that anyContext is not working. So i improved diff displaying in that way that it wont show difference between context if anyContext is used, e.g.
Improved version when displaying --version or setting it in generated code. The issue is that if you install minimock binary with go install, the version is set to 'dev', so in generated code minimock version is set to 'dev' making it impossible to understand which version of minimock has generated code, e.g.
// Code generated by http://github.com/gojuno/minimock (dev). DO NOT EDIT.
So in this pr if version is not set, we will take version and commit from debug.ReadBuildInfo() .
In this pr i introduce 3 bugs/improvements:
We have to update gowrap when pr https://github.com/hexdigest/gowrap/pull/86 is merged, to fix generation of interfaces with unions and type approximations.
Improvement with diff displaying: when test fails because expectations failed and we used minimock.Anycontext, the diff will show arguments that are different as well as context argument, e.g.
It is very confusing for developers as they think that there is also some issue with context, that anyContext is not working. So i improved diff displaying in that way that it wont show difference between context if anyContext is used, e.g.
--version
or setting it in generated code. The issue is that if you install minimock binary with go install, the version is set to 'dev', so in generated code minimock version is set to 'dev' making it impossible to understand which version of minimock has generated code, e.g.So in this pr if version is not set, we will take version and commit from debug.ReadBuildInfo() .