Documentation ¶ Index ¶ type Editor func NewEditor(t interface{ ... }) *Editor func (_m *Editor) Edit(filename string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Editor ¶ type Editor struct { mock.Mock } Editor is an autogenerated mock type for the Editor type func NewEditor ¶ func NewEditor(t interface { mock.TestingT Cleanup(func()) }) *Editor NewEditor creates a new instance of Editor. 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 (*Editor) Edit ¶ func (_m *Editor) Edit(filename string) error Edit provides a mock function with given fields: filename Source Files ¶ View all Source files Editor.go Click to show internal directories. Click to hide internal directories.