-
**What would you like to be added**:
To resolve this problem, it is necessary to modify all the functions defined in getty.Connection to be exported with uppercase names.
**Why is this needed*…
-
sir,can you give us a document about how to use and something about(security & performance )
-
-
Is there a more appropriate way to change the parameters of a function?
more complicated way....
```golang
var patchReadDir = gomonkey.NewPatches()
var readDir func(name string) ([]os.DirEnt…
-
如下代码,并发访问getMockTime(),有安全问题吗?想确认下,我测试没发现并发问题。
```
func init() {
gomonkey.ApplyFunc(time.Now, func() time.Time {
mockTime := int64(1588239281376264700)
sec := mockTime / 1000000000
ns…
hueng updated
3 years ago
-
It's not working on ARM architecture
# github.com/cch123/supermonkey/internal/bouk
../../../../go/pkg/mod/github.com/cch123/supermonkey@v1.0.0/internal/bouk/replace.go:24:14: undefined: JmpToFunc…
-
求解
-
这里定义了一个泛型的结构体,大致是这样:
```golang
type Table[T any] struct {
...
}
func (t *Table[T]) Add(network net.IPNet, value T) bool {
...
}
```
这里内容无关紧要,在使用gomonkey patch了叫Add的方法后,发现单元测试并未成功,调用…
-
RT
-
https://github.com/kilianc/base-golang/blob/da0a110c1a5afb8cfa810282485d3dc5181040ee/fetchpeople_test.go
I am getting intermittent failures in tests and panic.
```
panic: runtime error: index out…