-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support get private member method #36
Conversation
Is there any possible to upgrade |
I've tryed to resolve function type from reflect information, but saddly the type info of private methods have not been written for reflect package |
btw, the branch |
305705a
to
c86ff11
Compare
add the missing license decriptions |
c86ff11
to
461ef64
Compare
Good job. But some tests failed ... |
Try put generics-required code into another //go:build go1.18
// +build go1.18 |
461ef64
to
b6163c9
Compare
The CI testing is failed with Go1.13, which |
some tests still failed |
8ee9996
to
2ce8577
Compare
fixed, I've tried go1.13, 1.16, 1.17, 1.18, 1.19 and 1.20 on my dev env. |
4519bcf
to
eea6667
Compare
eea6667
to
3fe6a1c
Compare
What type of PR is this?
feat: A new feature
What this PR does / why we need it (en: English/zh: Chinese):
en: 1. We need to mock some method even if it's not exported, like
(*sha256.digest).checksum
or other method; 2. We need some helper function to migrategomonkey.ApplyPrivateMethod
.zh: 1. 某些场景下我们需要Mock私有方法,比如
(*sha256.digest).checksum
;2. 我们需要一个辅助函数去实现从gomonkey.ApplyPrivateMethod
的代码实现迁移。