Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
MIT License
1.03k
stars
104
forks
source link
Missing generic wrapper with `inout` argument #313
The code below ends up generating mocks that compile:
But the code below does not:
The issue is the
inout Query.Data
which combinesinout
and genericsQuery.Data
.The
MethodType
case forupdateCache
is:and the compiler complains that
Query
is undefined.Instead it should generate:
I've tried that change manually and after adding some
.wrapAsGeneric()
where needed. Code seem to work fine.I guess the fix should be doable, but I have no idea where to start.