agiledragon / agiledragon/gomonkey
macos m2 兼容性问题
Aperta
- Lingua principale
- Go
- Stelle
- 2.3k
- Fork
- 192
- Merge medio
- 1g 6h
- PR unite (30g)
- 1
Descrizione
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不会生效
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.