agiledragon / agiledragon/gomonkey
macos m2 兼容性问题
Open
- Dominant language
- Go
- Stars
- 2.3k
- Forks
- 192
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 1
Description
v2.11.0 版本可以使用打桩,权限报错消失了,但在一个测试方法中,进行多个成员方法打桩,除第一个,其他的打桩不生效,测试后Intel 的 mac 没有问题,M 系统的 mac 会 有这个问题。
代码 demo:
```
patches := gomonkey.ApplyMethodSeq(reflect.TypeOf(groupFactory), "MethodA", outputs)
defer patches.Reset()
patches = gomonkey.ApplyMethodSeq(reflect.TypeOf(groupFactory), "MethodB", outputs2)
```
MethodB不会生效
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.