agiledragon / gomonkey

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

err:private method feature for all go versions #86

Closed cofsonJame closed 2 years ago

cofsonJame commented 2 years ago

gomonkey:v2.7.0 go version:17.7

fully support private method

download gomonkey-2.7.0 , when I run apply_private_method_test.go , err like this:

GOROOT=C:\Program Files\Go #gosetup GOPATH=C:\Users\cofson\go #gosetup "C:\Program Files\Go\bin\go.exe" test -c -o C:\Users\cofson\AppData\Local\Temp\GoLand_TestApplyPrivateMethod_in_github_com_agiledragon_gomonkey_v2_test_1.test.exe github.com/agiledragon/gomonkey/v2/test #gosetup "C:\Program Files\Go\bin\go.exe" tool test2json -t C:\Users\cofson\AppData\Local\Temp\GoLand_TestApplyPrivateMethod_in_github_com_agiledragon_gomonkey_v2_test_1.test.exe -test.v -test.paniconexit0 -test.run ^\QTestApplyPrivateMethod\E$ #gosetup === RUN TestApplyPrivateMethod x Failures:

agiledragon commented 2 years ago

Did other test cases pass? Did you turn off the inline switch? I advice you to see the README firstly.

cofsonJame commented 2 years ago

thank you very much

cofsonJame commented 1 year ago

Thank you very much !

At 2022-04-07 21:57:30, "Zhang Xiaolong" @.***> wrote:

Did other test cases pass? Did you turn off the inline switch? I advice you to see the README firstly.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>