type MessageAttachment … // ContentType provides a mock function with given fields: func (_m *MessageAttachment) ContentType() string { … } // Name provides a mock function with given fields: func (_m *MessageAttachment) Name() string { … } // Reader provides a mock function with given fields: func (_m *MessageAttachment) Reader() io.Reader { … } // NewMessageAttachment creates a new instance of MessageAttachment. 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 NewMessageAttachment(t interface { … }