1
0
mirror of https://codeberg.org/crowci/crow.git synced 2025-04-18 04:44:01 +03:00
crow/.mockery.yaml
pat-s cecfb22099 refactor: mocking (#38)
- `mockery` can now be run in one call instead of multiple ones
- Use the recommended "packages" approach which will be the new default moving forward
- Enforce consistent naming of mock files
- Remove warnings when invoking `mockery`
- Get rid of *many* linter warnings 🎉️

Reviewed-on: https://codeberg.org/crowci/crow/pulls/38
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2025-02-15 10:23:47 +00:00

16 lines
305 B
YAML

---
with-expecter: true
packages:
codeberg.org/crowci/crow/v3:
config:
recursive: true
inpackage: false
filename: 'mock_{{.InterfaceName}}.go'
dir: '{{.InterfaceDir}}/mocks'
outpkg: '{{.PackageName}}'
mockname: 'Mock{{.InterfaceName}}'
all: true
resolve-type-alias: false
issue-845-fix: true