Skip to content

Commit

Permalink
Update features.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp authored Apr 5, 2023
1 parent f71d1e6 commit 6f08a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ packages:
```
1. For this package, we provide no package-level config (which means we inherit the deafults at the top-level). Since our default of `all:` is `False`, mockery will only generate the interfaces we specify. We tell it which interface to generate by using the `interfaces` section and specifying an empty map, one for each interface.
2. There might be cases where you want multiple mocks generated from the same interface. To do this, you can define a default `config` section for the interface, and further `configs` (plural) section, one for each mock. You _must_ specify a `structname` for the mocks in this section to differentiate them.
2. There might be cases where you want multiple mocks generated from the same interface. To do this, you can define a default `config` section for the interface, and further `configs` (plural) section, one for each mock. You _must_ specify a `mockname` for the mocks in this section to differentiate them.
3. This is telling mockery to generate _all_ interfaces in the `io` package.
4. We can provide interface-specifc overrides to the generation config.

Expand All @@ -154,7 +154,7 @@ These are various layouts you may want to adopt:
```yaml
filename: "mock_{{.InterfaceName}}.go"
dir: "mocks/{{.PackagePath}}"
structname: "Mock{{.InterfaceName}}"
mockname: "Mock{{.InterfaceName}}"
outpkg: "{{.PackageName}}"
```

Expand Down Expand Up @@ -192,7 +192,7 @@ These are various layouts you may want to adopt:
```yaml
filename: "mock_{{.InterfaceName}}.go"
dir: "{{.InterfaceDir}}"
structname: "Mock{{.InterfaceName}}"
mockname: "Mock{{.InterfaceName}}"
outpkg: "{{.PackageName}}"
inpackage: True
```
Expand Down

0 comments on commit 6f08a5d

Please sign in to comment.