Closed fr3fou closed 3 years ago
The package name in the mock here is different from the source. Did you mean to use bar
or bar_test
by chance, or should the package name also somehow match the generated struct?
The package name in the mock here is different from the source. Did you mean to use
bar
orbar_test
by chance, or should the package name also somehow match the generated struct?
The second package should've been called baz_test; I edited my example
@fr3fou Sorry for the delay (I thought this would be harder due to mutually exclusive flags). See #14 for a sample implementation. I've added a --for-test
flag that modifies the (supplied or inferred) filename and package names by appeding a _test
suffix for both.
Is there any other behavior you'd like turned on by default when this flag is supplied?
Continued from #11
I'm interested in the ability to do something along these lines