-
I'm using gomonkey with ginkgo to write unittests, and gomonkey needs to disable function inlining. So I must run ginkgo like this.
```bash
$ gingko -gcflags=all=-l
```
Tried the build tags op…
-
```
package main
import (
"fmt"
"github.com/agiledragon/gomonkey/v2"
. "github.com/smartystreets/goconvey/convey"
"reflect"
"testing"
)
type A struct {
B *B
}
func (a *A) TestA…
-
比较了hotswap和gomonkey,gomonkey能修改成员函数,能修改的范围比较广,想咨询下大家有没有用gomonkey来热更游戏服务器?
-
Description:
1. Environment:
* Machine: Mac with M3 chip
* Architecture: arm64
* Go version: 1.21
2. Initial problem:
* I cloned the gomonkey repository to my Mac.
* When ru…
-
## Who is using gomonkey?
Thanks sincerely for constantly using and supporting gomonkey, I will try my best to make gomonkey better, and keep growing gomonkey community. To attract more developers t…
-
Current tests use gomonkey to setup and clear patches, which is not concurrent safe and does not always run well.
Here comes the new options: https://github.com/xhd2015/xgo.
If you like, I will …
-
Since we are helping open projects migrating from gomonkey to xgo, see https://github.com/xhd2015/xgo/issues/18.
We need to draft a migration document.
-
**What feature you'd like to add:**
ENV: Apple M1
While running below code,
```
make test
```
will meet errors as below
```
....
# github.com/agiledragon/gomonkey
../../../../pkg/mod/gith…
-
Hello guys, I'm here planning to rewrite some unit tests in the project, switching from gomonkey to xgo.
Xgo is a more go-native mocking library and provides simpler API and smoother user experienc…
-
https://majunmin.github.io/post/Go-Test-Gomonkey%E4%BD%BF%E7%94%A8.html
golang的单测, 有一些约定, 例如文件名是 xxx.go, 测试文件名必须是 xxx_test.go, 且测试函数的方法名 都是以 Test开头, 使用go test 命令, 有时发现mock不住,一般都是内联(简短)函数mock失败,可以执…