agiledragon / gomonkey

gomonkey is a library to make monkey patching in unit tests easy
MIT License
1.94k stars 179 forks source link

gomonkey里有没有类似于monkey中的UnpatchAll方法 #13

Open SeanMrLi opened 4 years ago

agiledragon commented 4 years ago

没有全局的UnpatchAll函数,仅有对象级别的Reset方法,对象之间的patches是隔离的,也没有统一管理的必要

wearetvxq commented 3 years ago

没有统一的 reset all 方法,那不是每个mock defer都得释放,增加工作量啊