func (m MockProtoUnmarshaler) Unmarshal(b []byte) error {
	if m.UnmarshalFunc == nil {
		panic("Unmarshal called, but not set")
	}
	return m.UnmarshalFunc(b)
}
Unmarshal calls UnmarshalFunc if set and panics otherwise.
package test
type MockProtoMessage struct {
	ResetFunc        func()
	StringFunc       func() string
	ProtoMessageFunc func()
}
func (m MockProtoMessage) Reset() {
	if m.ResetFunc == nil {
		panic("Reset called, but not set")
	}
	m.ResetFunc()
}
func (m MockProtoMessage) String() string {
	if m.StringFunc == nil {
		panic("String called, but not set")
	}
	return m.StringFunc()
}
func (m MockProtoMessage) ProtoMessage() {
	if m.ProtoMessageFunc == nil {
		panic("ProtoMessage called, but not set")
	}
	m.ProtoMessageFunc()
}
type MockProtoMarshaler struct {
	MarshalFunc func() ([]byte, error)
}
func (m MockProtoMarshaler) Marshal() ([]byte, error) {
	if m.MarshalFunc == nil {
		panic("Marshal called, but not set")
	}
	return m.MarshalFunc()
}
type MockProtoUnmarshaler struct {
	UnmarshalFunc func([]byte) error
}