File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -32,23 +32,25 @@ $ go install github.com/matryer/moq@latest
3232
3333```
3434moq [flags] source-dir interface [interface2 [interface3 [...]]]
35- -fmt string
36- go pretty-printer: gofmt, goimports or noop (default gofmt)
37- -out string
38- output file (default stdout)
39- -pkg string
40- package name (default will infer)
41- -stub
42- return zero values when no mock implementation is provided, do not panic
35+
36+ -fmt string
37+ go pretty-printer: gofmt, goimports or noop (default gofmt)
38+ -out string
39+ output file (default stdout)
40+ -pkg string
41+ package name (default will infer)
42+ -rm
43+ first remove output file, if it exists
44+ -stub
45+ return zero values when no mock implementation is provided, do not panic
4346 -skip-ensure
4447 suppress mock implementation check, avoid import cycle if mocks
4548 generated outside of the tested package
4649 -with-resets
4750 generate functions to facilitate resetting calls made to a mock
4851
4952Specifying an alias for the mock is also supported with the format 'interface:alias'
50-
51- Example: moq -pkg different . MyInterface:MyMock
53+ Ex: moq -pkg different . MyInterface:MyMock
5254```
5355
5456** NOTE:** ` source-dir ` is the directory where the source code (definition) of the target interface is located.
You can’t perform that action at this time.
0 commit comments