afero
afero copied to clipboard
cannot mockgen ReadFile and WriteFile method.
I have generate a mock with mockgen for testing afero's function but it seems that WriteFile and ReadFile function are not be intergrate in an interface. Is there any solution to do it ? Thanks in advance
create a new interface that has those two methods and the afero methods and then generate a mock for that new interface.