6 Star 47 Fork 14

Gitee 极速下载/Gogs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/gogs/gogs
克隆/下载
mockgen.yaml 1.70 KB
一键复制 编辑 原始数据 按行查看 历史
force: true
goimports: goimports
file-prefix: |
This file was generated by running `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.
mocks:
# To generate a new mock struct from an interface definition, add a new value to this
# list. Each item will need to supply two 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`.
- filename: internal/database/mocks_test.go
sources:
- path: gogs.io/gogs/internal/database
interfaces:
- loginSourceFileStore
- loginSourceFilesStore
- filename: internal/database/mocks_gen.go
sources:
- path: gogs.io/gogs/internal/auth
interfaces:
- Provider
- filename: internal/route/lfs/mocks_test.go
sources:
- path: gogs.io/gogs/internal/route/lfs
interfaces:
- Store
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/Gogs.git
git@gitee.com:mirrors/Gogs.git
mirrors
Gogs
Gogs
main

搜索帮助