You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// m calls mFunc.func (mock*iMock) m(ss) { // Type s is shadowed.ifmock.mFunc==nil {
panic("iMock.mFunc: method is nil but i.m was just called")
}
callInfo:=struct {
Ss// Compiler error: s (variable of type s) is not a type.
}{
S: s,
}
mock.lockm.Lock()
mock.calls.m=append(mock.calls.m, callInfo)
mock.lockm.Unlock()
mock.mFunc(s)
}
This may (and arguably should) be remedied by changing the interface method to m(somethingDescriptive s), yet it's an invalid output generated from a valid input.
The text was updated successfully, but these errors were encountered:
Please consider the following snippet:
moq generates:
This may (and arguably should) be remedied by changing the interface method to
m(somethingDescriptive s)
, yet it's an invalid output generated from a valid input.The text was updated successfully, but these errors were encountered: