type MessageImage … // ContentType provides a mock function with given fields: func (_m *MessageImage) ContentType() string { … } // Name provides a mock function with given fields: func (_m *MessageImage) Name() string { … } // Reader provides a mock function with given fields: func (_m *MessageImage) Reader() io.Reader { … } // NewMessageImage creates a new instance of MessageImage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewMessageImage(t interface { … }