Skip to content

Add method names as constants #192

@ghostiam

Description

@ghostiam

Example:

	image := new(mocks.Image)
-	image.On("Add", mock.Anything)
+	image.On(mocks.ImageMethodAdd, mock.Anything)
type Image struct {
	mock.Mock
}

+ const (
+ 	ImageMethodAdd = "Add"
+ 	ImageMethodGet = "Get"
+ )

func (_m *Image) Add(image model.Image) (uint64, error) {}
func (_m *Image) Get(settings storage.SettingsImage) ([]model.Image, error) {}
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions