Migrate mockery to packages feature (#29013)

Этот коммит содержится в:
Nicolas Le Cam
2024-11-07 12:48:11 +01:00
коммит произвёл GitHub
родитель 5ebdea506f
Коммит c90e562528
12 изменённых файлов: 132 добавлений и 14 удалений

11
server/channels/app/email/.mockery.yaml Обычный файл
Просмотреть файл

@@ -0,0 +1,11 @@
with-expecter: false
packages:
github.com/mattermost/mattermost/server/v8/channels/app/email:
config:
dir: "channels/app/email/mocks"
filename: "{{.InterfaceName}}.go"
mockname: "{{.InterfaceName}}"
outpkg: mocks
note: "Regenerate this file using `make email-mocks`."
interfaces:
ServiceInterface:

11
server/channels/app/platform/.mockery.yaml Обычный файл
Просмотреть файл

@@ -0,0 +1,11 @@
with-expecter: false
packages:
github.com/mattermost/mattermost/server/v8/channels/app/platform:
config:
dir: "channels/app/platform/mocks"
filename: "{{.InterfaceName}}.go"
mockname: "{{.InterfaceName}}"
outpkg: mocks
note: "Regenerate this file using `make platform-mocks`."
interfaces:
SuiteIFace:

10
server/channels/store/.mockery.yaml Обычный файл
Просмотреть файл

@@ -0,0 +1,10 @@
with-expecter: false
packages:
github.com/mattermost/mattermost/server/v8/channels/store:
config:
include-regex: ".*Store"
dir: "channels/store/storetest/mocks"
filename: "{{.InterfaceName}}.go"
mockname: "{{.InterfaceName}}"
outpkg: mocks
note: "Regenerate this file using `make store-mocks`."

11
server/channels/utils/.mockery.yaml Обычный файл
Просмотреть файл

@@ -0,0 +1,11 @@
with-expecter: false
packages:
github.com/mattermost/mattermost/server/v8/channels/utils:
config:
dir: "channels/utils/mocks"
filename: "{{.InterfaceName}}.go"
mockname: "{{.InterfaceName}}"
outpkg: mocks
note: "Regenerate this file using `make misc-mocks`."
interfaces:
LicenseValidatorIface: