You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -121,11 +121,11 @@ Parameter Descriptions
121
121
|`config`| :fontawesome-solid-x: |`#!yaml ""`| Set the location of the mockery config file. |
122
122
|`dir`| :fontawesome-solid-check: |`#!yaml "mocks/{{.SrcPackagePath}}"`| The directory where the mock file will be outputted to. |
123
123
|`exclude-subpkg-regex`| :fontawesome-solid-x: |`#!yaml []`| A list of regular expressions that denote which subpackages should be excluded when `#!yaml recursive: true`|
124
-
|`exclude-regex`| :fontawesome-solid-x: |`#!yaml ""`| When set along with `include-regex`, then interfaces which match `include-regex` but also match `exclude-regex` will not be generated. If `all` is set, or if `include-regex` is not set, then `exclude-regex` has no effect. |
124
+
|`exclude-interface-regex`| :fontawesome-solid-x: |`#!yaml ""`| When set along with `include-interface-regex`, then interfaces which match `include-interface-regex` but also match `exclude-interface-regex` will not be generated. If `all` is set, or if `include-interface-regex` is not set, then `exclude-interface-regex` has no effect. |
125
125
|`filename`| :fontawesome-solid-check: |`#!yaml "mock_{{.InterfaceName}}.go"`| The name of the file the mock will reside in. |
126
126
|`force-file-write`| :fontawesome-solid-x: |`#!yaml false`| When set to `#!yaml force-file-write: true`, mockery will forcibly overwrite any existing files. |
127
127
|`formatter`| :fontawesome-solid-x: |`#!yaml "goimports"`| The formatter to use on the rendered template. Choices are: `gofmt`, `goimports`, `noop`. |
128
-
|`include-regex`| :fontawesome-solid-x: |`#!yaml ""`| When set, only interface names that match the expression will be generated. This setting is ignored if `all: True` is specified in the configuration. To further refine the interfaces generated, use `exclude-regex`. |
128
+
|`include-interface-regex`| :fontawesome-solid-x: |`#!yaml ""`| When set, only interface names that match the expression will be generated. This setting is ignored if `all: True` is specified in the configuration. To further refine the interfaces generated, use `exclude-interface-regex`. |
129
129
|`log-level`| :fontawesome-solid-x: |`#!yaml "info"`| Set the level of the logger |
130
130
|`structname`| :fontawesome-solid-check: |`#!yaml "Mock{{.InterfaceName}}"`| The name of the generated interface implementation. |
131
131
|`packages`| :fontawesome-solid-x: |`#!yaml null`| A dictionary containing configuration describing the packages and interfaces to generate mocks for. |
tbl.Append("deprecated-parameter", "`include-auto-generated` is not supported in v3, but PRs are welcome: https://github.com/vektra/mockery/issues/954")
0 commit comments