Instead, I would like to see names of variables according to interface declaration (ctx, Data, Filename).
Also I don't think we need to pre allocate return values (r and r1)
mockFileStorage.SaveMock.Set(func(ctx context.Context, Data []byte, Filename string) (*FileInfo, error) {
Sorry for the delayed response. This should be fixed with minimock v2.0.0 please check it out and feel free to reopen the issue if the problem still exists.
For example, I have an interface:
Than, I have to work with arguments
p, p1, p2
.Instead, I would like to see names of variables according to interface declaration (
ctx, Data, Filename
). Also I don't think we need to pre allocate return values (r
andr1
)