agiledragon / gomonkey

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

新增支持指定返回值和method不用传入receiver #78

Closed AVOlili closed 2 years ago

AVOlili commented 2 years ago

支持func/var/method指定返回值,参考test/: apply_func_return_test.go apply_func_var_return_test.go apply_method_return_test.go 支持method打桩时不传入receiver,参考test/: apply_method_func_test.go