Comments (11)
https://blog.csdn.net/weixin_42873928/article/details/129957307
from gomonkey.
https://blog.csdn.net/weixin_42873928/article/details/129957307
Not works for me.
from gomonkey.
The latest release of v2.10.1
testing.tRunner.func1.2({0x1020a40a0, 0x10327ada8})
/usr/local/go/src/testing/testing.go:1526 +0x1c8
testing.tRunner.func1()
/usr/local/go/src/testing/testing.go:1529 +0x364
panic({0x1020a40a0, 0x10327ada8})
/usr/local/go/src/runtime/panic.go:884 +0x1f4
github.com/agiledragon/gomonkey/v2.modifyBinary(0x101aedcd0, {0x1400051e900, 0x18, 0x102050240?})
/Users/wlh/go/src/github.com/volcano-sh/volcano/vendor/github.com/agiledragon/gomonkey/v2/modify_binary_darwin.go:9 +0xa0
github.com/agiledragon/gomonkey/v2.replace(0x101aedcd0, 0x101fc8ae0?)
/Users/wlh/go/src/github.com/volcano-sh/volcano/vendor/github.com/agiledragon/gomonkey/v2/patch.go:269 +0x88
github.com/agiledragon/gomonkey/v2.(*Patches).ApplyCore(0x140002df930, {0x101fc8ae0?, 0x14000518ca0?, 0x0?}, {0x101fc8ae0, 0x1022cb9f0, 0x13})
/Users/wlh/go/src/github.com/volcano-sh/volcano/vendor/github.com/agiledragon/gomonkey/v2/patch.go:213 +0x4c
github.com/agiledragon/gomonkey/v2.(*Patches).ApplyMethod(0x0?, {0x10228a4e0, 0x1022bfce0}, {0x101b27ea0, 0x11}, {0x101fc8ae0?, 0x1022cb9f0?})
/Users/wlh/go/src/github.com/volcano-sh/volcano/vendor/github.com/agiledragon/gomonkey/v2/patch.go:92 +0x1b0
github.com/agiledragon/gomonkey/v2.ApplyMethod(...)
/Users/wlh/go/src/github.com/volcano-sh/volcano/vendor/github.com/agiledragon/gomonkey/v2/patch.go:29
from gomonkey.
still have this problem, go monkey couldn't solve it thoroughly? if so,please note it at readme
from gomonkey.
Same problem
from gomonkey.
I am suggesting running your unit test in docker images so the problem would not occur again.
It works fine for me with the imagegolang:1.20
. I am using M1.
from gomonkey.
I am suggesting running your unit test in docker images so the problem would not occur again. It works fine for me with the image
golang:1.20
. I am using M1.
Yes, it works in docker and I did it to skip this error. But that's just a workaroud.
from gomonkey.
I am suggesting running your unit test in docker images so the problem would not occur again. It works fine for me with the image
golang:1.20
. I am using M1.
it work successly on my mac, but it is necessary everyone need update file?
from gomonkey.
mark
from gomonkey.
https://blog.csdn.net/weixin_42873928/article/details/129957307
worked out
from gomonkey.
Related Issues (20)
- ApplyMethod invalid one case
- ApplyPrivateMethod return interface is invalid in 1.16
- TestApplyPrivateMethod run fail HOT 1
- ApplyFuncSeq has DATA RACE issue
- applyFunc failed due to type errors HOT 1
- if we use it as an AOP tool,is it stable & how about it's performance HOT 1
- 是不是要支持下M1 ARM64哇?
- 希望能支持打桩第三方包的私有结构体方法 HOT 2
- in docker of Mac M1, buildJmpDirective
- example or document HOT 1
- support loongarch64? HOT 1
- does ApplyPrivateMethod have sequence mock? HOT 4
- signal SIGSEGV: segmentation violation HOT 2
- release-2.10有问题 HOT 3
- ApplyFuncVar和ApplyFunc有什么区别?
- funcToMethod does not support variadic functions
- verifying module: checksum mismatch HOT 1
- please add ApplyPrivateMethodFunc and ApplyPrivateMethodReturn
- 是否有并发问题 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gomonkey.