Struct members have '_'
enocom opened this issue · 3 comments
enocom commented
Struct fields are generated with an underscore to disambiguate from the receiver. This isn't necessary and fails to compile as the underscore is not included in field names when assigning to them in the mock implementations:
struct field definition:
SendMsgInput struct {
M_ chan interface{}
}
struct field use:
func (m *mockDopplerIngestor_PushServer) RecvMsg(m_ interface{}) error {
m.RecvMsgCalled <- true
m.RecvMsgInput.M <- m_
return <-m.RecvMsgOutput.Ret0
}
/cc @jasonkeene
nelsam commented
This should be resolved. If not, please reopen.
poy commented
This has a bug. The Channel definition also gets a _
but it when the channel is written to it does not.
nelsam commented
@apoydence Can you provide a failing test? This test has me doubting you. Are you sure you used the most recent version of hel?