agiledragon / gomonkey

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

当被测函数只有一行代码的时候,打桩失败,很神奇 #114

Closed jianxuanluyc closed 1 year ago

jianxuanluyc commented 1 year ago

因为没有加gcflags=all=-l参数