traefik / mocktail

Naive code generator that creates mock implementation using testify.mock

Home Page:https://traefik.io/blog/mocktail-the-mock-generator-for-strongly-typed-mocks/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add note about required file naming convention

vidhill opened this issue · comments

I had some head-scratching before I realised that my file had to start with mock_

Hello,

This constraint is explained in the "How to use" section: https://github.com/traefik/mocktail#how-to-use

It doesn't specify that this is a required naming convention.
if it wasn't obvious to me then it might not be obvious to the next person

If you have a suggestion to improve this section, I will be happy if you create a PR on this.

Oh, the the file must be named mock_test.go and nothing else

ok, yea, I will create a PR