-
```
Scenario is : caller pass mock to---->Method_0(mock),but Method_0(..) didn't
call mock's method,and passed mock to------> Method_1(mock)
,finally,mock.ToVerify() gets called in Method_1().Becaus…
-
```
Scenario is : caller pass mock to---->Method_0(mock),but Method_0(..) didn't
call mock's method,and passed mock to------> Method_1(mock)
,finally,mock.ToVerify() gets called in Method_1().Becaus…
-
$ withmock go test
ERROR: Failed to get name for 'encoding': External program 'go' failed (exit status 1), with output:
can't load package: package encoding: no Go source files in /usr/local/go/src/p…
-
Is there a way to do partial mocking with the "withmock" package? If not, have you thought about an approach? I'd love to help to make this happen as I see this library as an essential piece to test…
-
When I use mocktest the generated struct is missing an inner field causing some structs to no longer satisfy their interfaces.
for instance
type Bar struct {
}
func(b Bar)MyMethod() {}
type Foo s…