1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-Sourcegraph

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
mockgen.yaml 1.5 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Noah S-C Отправлено 16.02.2024 16:26 19d9cfc
# To generate a new mock struct from an interface definition, add a new entry to one of
# the lists in a file below (or create a new file if the current categories do not fit).
#
# Each item will need to supply the following pieces of information:
#
# (1) First, you will need to give a target filename
# (2) Second, you will need to supply a target import path and interface name. If the
# set of interface definitions you are mocking are all from the same package, then
# you can supply a `path` and `interfaces` key which take a string and string array,
# respectively. If the set of interface definitions you are mocking come from multiple
# import paths, you can supply a `sources` array, each item containing a `path` and
# `interfaces` key.
#
# By convention, you should generate mocks next to the CONSUMER of an interface, not the
# definition. It is NOT considered an anti-pattern to generate multiple mocks for the same
# shared interface.
#
# By convention, the filename containing generated mocks should be `mocks_test.go`.
include-config-paths:
- mockgen.test.yaml
- mockgen.temp.yaml
# some of these values are ignored by bazel (such as force and goimports) as theyre not
# transferable or dont make sense
force: true
goimports: ./.bin/goimports
file-prefix: |
This file was generated by running `sg generate` (or `go-mockgen`) at the root of
this repository. To add additional mocks to this or another package, add a new entry
to the mockgen.yaml file in the root of this repository.

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-Sourcegraph.git
git@api.gitlife.ru:oschina-mirror/mirrors-Sourcegraph.git
oschina-mirror
mirrors-Sourcegraph
mirrors-Sourcegraph
main