mocks: Reorganize mock definitions into multiple files (#36967)

This commit is contained in:
Eric Fritz 2022-06-27 15:59:16 -05:00 committed by GitHub
parent fcb6bd84e3
commit fc52955b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
61 changed files with 413 additions and 406 deletions

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

2
gen.go
View File

@ -2,4 +2,4 @@ package sourcegraph
// Keep these versions in sync with go.mod
//go:generate env GOBIN=$PWD/.bin GO111MODULE=on go install golang.org/x/tools/cmd/goimports@v0.1.10
//go:generate go run github.com/derision-test/go-mockgen/cmd/go-mockgen@v1.3.2
//go:generate go run github.com/derision-test/go-mockgen/cmd/go-mockgen@v1.3.3

2
go.mod
View File

@ -36,7 +36,7 @@ require (
github.com/davecgh/go-spew v1.1.1
github.com/daviddengcn/go-colortext v1.0.0
github.com/derision-test/glock v1.0.0
github.com/derision-test/go-mockgen v1.3.2
github.com/derision-test/go-mockgen v1.3.3
github.com/dghubble/gologin v2.2.0+incompatible
github.com/dgraph-io/ristretto v0.1.0
github.com/dineshappavoo/basex v0.0.0-20170425072625-481a6f6dc663

2
go.sum
View File

@ -629,6 +629,8 @@ github.com/derision-test/glock v1.0.0 h1:b6sViZG+Cm6QtdpqbfWEjaBVbzNPntIS4GzsxpS
github.com/derision-test/glock v1.0.0/go.mod h1:jKtLdBMrF+XQatqvg46wiWdDfDSSDjdhO4dOM2FX9H4=
github.com/derision-test/go-mockgen v1.3.2 h1:wFndNkm+IjLMdk8P+q6Bi6rWuiB5CoWP06BSBmoGVPM=
github.com/derision-test/go-mockgen v1.3.2/go.mod h1:/TXUePlhtHmDDCaDAi/a4g6xOHqMDz3Wf0r2NPGskB4=
github.com/derision-test/go-mockgen v1.3.3 h1:TyCowqp/S9J3Tvv+ZCnsIDwVW5flJEMFZlNNMfjSLNM=
github.com/derision-test/go-mockgen v1.3.3/go.mod h1:/TXUePlhtHmDDCaDAi/a4g6xOHqMDz3Wf0r2NPGskB4=
github.com/devigned/tab v0.1.1/go.mod h1:XG9mPq0dFghrYvoBF3xdRrJzSTX1b7IQrvaL9mzjeJY=
github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4=
github.com/dgraph-io/ristretto v0.1.0 h1:Jv3CGQHp9OjuMBSne1485aDpUkTKEcUqF+jm/LuerPI=

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

View File

@ -1,4 +1,4 @@
// Code generated by go-mockgen 1.3.2; DO NOT EDIT.
// Code generated by go-mockgen 1.3.3; DO NOT EDIT.
//
// 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

113
mockgen.temp.yaml Normal file
View File

@ -0,0 +1,113 @@
- filename: cmd/frontend/internal/auth/userpasswd/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/cmd/frontend/internal/auth/userpasswd
interfaces:
- LockoutStore
- filename: dev/team/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/dev/team
interfaces:
- TeammateResolver
- filename: docker-images/prometheus/cmd/prom-wrapper/mocks/mocks_temp.go
path: github.com/prometheus/client_golang/api/prometheus/v1
interfaces:
- API
- filename: enterprise/cmd/frontend/internal/codeintel/resolvers/mocks/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/codeintel/resolvers
interfaces:
- QueryResolver
- Resolver
- filename: enterprise/cmd/frontend/internal/registry/stores/dbmocks/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/registry/stores
interfaces:
- ExtensionStore
- ReleaseStore
- filename: enterprise/internal/database/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/database
interfaces:
- CodeMonitorStore
- EnterpriseDB
- PermsStore
- filename: enterprise/internal/insights/background/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/insights/background
interfaces:
- RepoStore
- filename: enterprise/internal/insights/compression/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/insights/compression
interfaces:
- CommitStore
- filename: enterprise/internal/insights/discovery/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/insights/discovery
interfaces:
- IndexableReposLister
- RepoStore
- SettingStore
- filename: enterprise/internal/insights/store/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/insights/store
interfaces:
- DataSeriesStore
- InsightMetadataStore
- Interface
- filename: internal/authz/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/authz
interfaces:
- SubRepoPermissionChecker
- SubRepoPermissionsGetter
- filename: internal/database/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/database
interfaces:
- AccessTokenStore
- AuthzStore
- BitbucketProjectPermissionsStore
- ConfStore
- DB
- EventLogStore
- ExternalServiceStore
- FeatureFlagStore
- GitserverLocalCloneStore
- GitserverRepoStore
- GlobalStateStore
- NamespaceStore
- OrgInvitationStore
- OrgMemberStore
- OrgStore
- PhabricatorStore
- RepoStore
- SavedSearchStore
- SearchContextsStore
- SecurityEventLogsStore
- SettingsStore
- SubRepoPermsStore
- TemporarySettingsStore
- UserCredentialsStore
- UserEmailsStore
- UserExternalAccountsStore
- UserPublicRepoStore
- UserStore
- WebhookLogStore
- filename: internal/gitserver/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/gitserver
interfaces:
- Client
- filename: internal/insights/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/insights
interfaces:
- Loader
- filename: internal/repos/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/repos
interfaces:
- Store
- filename: internal/search/client/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/search/client
interfaces:
- SearchClient
- filename: internal/search/job/mockjob/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/search/job
interfaces:
- Job
- filename: internal/uploadstore/mocks/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/uploadstore
interfaces:
- Store
- filename: internal/workerutil/dbworker/store/mocks/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/workerutil/dbworker/store
interfaces:
- Store

219
mockgen.test.yaml Normal file
View File

@ -0,0 +1,219 @@
- filename: cmd/symbols/fetcher/mocks_test.go
path: github.com/sourcegraph/sourcegraph/cmd/symbols/gitserver
interfaces:
- GitServerClient
- filename: cmd/symbols/internal/api/mocks_test.go
path: github.com/sourcegraph/sourcegraph/cmd/symbols/gitserver
interfaces:
- GitServerClient
- filename: enterprise/cmd/executor/internal/command/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/command
interfaces:
- ExecutionLogEntryStore
- Logger
- LogEntry
- commandRunner
- filename: enterprise/cmd/executor/internal/worker/mocks_test.go
sources:
- path: github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/command
interfaces:
- Runner
- path: github.com/sourcegraph/sourcegraph/internal/workerutil
interfaces:
- Store
- filename: enterprise/cmd/frontend/internal/app/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/app
interfaces:
- githubClient
- filename: enterprise/cmd/frontend/internal/codeintel/httpapi/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/codeintel/httpapi
interfaces:
- DBStore
- GitHubClient
- filename: enterprise/cmd/frontend/internal/codeintel/resolvers/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/codeintel/resolvers
interfaces:
- DBStore
- EnqueuerDBStore
- EnqueuerGitserverClient
- GitserverClient
- IndexEnqueuer
- LSIFStore
- PositionAdjuster
- RepoUpdaterClient
- filename: enterprise/cmd/frontend/internal/executorqueue/handler/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/services/executors/store
interfaces:
- Store
- filename: enterprise/cmd/frontend/internal/executorqueue/queues/batches/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/executorqueue/queues/batches
interfaces:
- BatchesStore
- filename: enterprise/cmd/precise-code-intel-worker/internal/worker/mocks_test.go
sources:
- path: github.com/sourcegraph/sourcegraph/enterprise/cmd/precise-code-intel-worker/internal/worker
interfaces:
- DBStore
- GitserverClient
- LSIFStore
- path: github.com/sourcegraph/sourcegraph/internal/workerutil/dbworker/store
interfaces:
- Store
prefix: Worker
- filename: enterprise/cmd/worker/internal/codeintel/indexing/mocks_test.go
sources:
- path: github.com/sourcegraph/sourcegraph/enterprise/cmd/worker/internal/codeintel/indexing
interfaces:
- DBStore
- ExternalServiceStore
- GitserverClient
- IndexEnqueuer
- IndexingRepoStore
- IndexingSettingStore
- PolicyMatcher
- RepoUpdaterClient
- path: github.com/sourcegraph/sourcegraph/internal/codeintel/stores/dbstore
interfaces:
- PackageReferenceScanner
- path: github.com/sourcegraph/sourcegraph/internal/workerutil/dbworker/store
interfaces:
- Store
prefix: Worker
- filename: enterprise/cmd/worker/internal/codeintel/janitor/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/worker/internal/codeintel/janitor
interfaces:
- DBStore
- LSIFStore
- filename: enterprise/internal/batches/reconciler/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/batches/sources
interfaces:
- ChangesetSource
- ForkableChangesetSource
- filename: enterprise/internal/batches/sources/mocks_test.go
sources:
- path: github.com/sourcegraph/sourcegraph/enterprise/internal/batches/sources
interfaces:
- ChangesetSource
- SourcerStore
- path: github.com/sourcegraph/sourcegraph/internal/extsvc/bitbucketcloud
interfaces:
- Client
prefix: BitbucketCloud
- filename: enterprise/internal/batches/syncer/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/batches/syncer
interfaces:
- SyncStore
- filename: internal/codeintel/autoindexing/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/autoindexing
interfaces:
- DBStore
- GitServerClient
- InferenceService
- RepoUpdaterClient
- filename: internal/codeintel/autoindexing/background/scheduler/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/autoindexing/background/scheduler
interfaces:
- DBStore
- PolicyMatcher
- filename: internal/codeintel/autoindexing/internal/inference/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/autoindexing/internal/inference
interfaces:
- GitService
- SandboxService
- filename: internal/codeintel/dependencies/mocks_test.go
sources:
- path: github.com/sourcegraph/sourcegraph/internal/codeintel/dependencies
interfaces:
- LockfilesService
- Syncer
- localGitService
- path: github.com/sourcegraph/sourcegraph/internal/codeintel/dependencies/internal/store
interfaces:
- Store
- filename: internal/codeintel/dependencies/internal/lockfiles/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/dependencies/internal/lockfiles
interfaces:
- GitService
- filename: internal/codeintel/documents/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/documents/internal/store
interfaces:
- Store
- filename: internal/codeintel/policies/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/policies/internal/store
interfaces:
- Store
- filename: internal/codeintel/policies/background/repomatcher/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/policies/background/repomatcher
interfaces:
- DBStore
- filename: internal/codeintel/policies/enterprise/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/policies/enterprise
interfaces:
- GitserverClient
package: policies
- filename: internal/codeintel/stores/dbstore/migration/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/stores/dbstore/migration
interfaces:
- GitServerClient
- filename: internal/codeintel/symbols/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/symbols/internal/store
interfaces:
- Store
- filename: internal/codeintel/uploads/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/uploads/internal/store
interfaces:
- Store
- filename: internal/codeintel/uploads/background/cleanup/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/uploads/background/cleanup
interfaces:
- DBStore
- LSIFStore
- UploadService
- filename: internal/codeintel/uploads/background/commitgraph/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/uploads/background/commitgraph
interfaces:
- DBStore
- GitserverClient
- Locker
- filename: internal/codeintel/uploads/background/expiration/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/uploads/background/expiration
interfaces:
- DBStore
- PolicyMatcher
- filename: internal/database/migration/runner/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/database/migration/runner
interfaces:
- Store
- filename: internal/featureflag/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/featureflag
interfaces:
- Store
- filename: internal/goroutine/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/goroutine
interfaces:
- BackgroundRoutine
- ErrorHandler
- Finalizer
- Handler
- filename: internal/oobmigration/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/oobmigration
interfaces:
- Migrator
- storeIface
- filename: internal/uploadstore/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/uploadstore
interfaces:
- gcsAPI
- gcsBucketHandle
- gcsComposer
- gcsObjectHandle
- s3API
- s3Uploader
package: uploadstore
- filename: internal/workerutil/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/workerutil
interfaces:
- Handler
- Store
- WithHooks
- WithPreDequeue

View File

@ -1,355 +1,28 @@
# 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
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.
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: cmd/frontend/internal/auth/userpasswd/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/cmd/frontend/internal/auth/userpasswd
interfaces:
- LockoutStore
- filename: cmd/symbols/fetcher/mocks_test.go
path: github.com/sourcegraph/sourcegraph/cmd/symbols/gitserver
interfaces:
- GitServerClient
- filename: cmd/symbols/internal/api/mocks_test.go
path: github.com/sourcegraph/sourcegraph/cmd/symbols/gitserver
interfaces:
- GitServerClient
- filename: dev/team/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/dev/team
interfaces:
- TeammateResolver
- filename: docker-images/prometheus/cmd/prom-wrapper/mocks/mocks_temp.go
path: github.com/prometheus/client_golang/api/prometheus/v1
interfaces:
- API
- filename: enterprise/cmd/executor/internal/command/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/command
interfaces:
- ExecutionLogEntryStore
- Logger
- LogEntry
- commandRunner
- filename: enterprise/cmd/executor/internal/worker/mocks_test.go
sources:
- path: github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/command
interfaces:
- Runner
- path: github.com/sourcegraph/sourcegraph/internal/workerutil
interfaces:
- Store
- filename: enterprise/cmd/frontend/internal/app/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/app
interfaces:
- githubClient
- filename: enterprise/cmd/frontend/internal/codeintel/httpapi/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/codeintel/httpapi
interfaces:
- DBStore
- GitHubClient
- filename: enterprise/cmd/frontend/internal/codeintel/resolvers/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/codeintel/resolvers
interfaces:
- DBStore
- EnqueuerDBStore
- EnqueuerGitserverClient
- GitserverClient
- IndexEnqueuer
- LSIFStore
- PositionAdjuster
- RepoUpdaterClient
- filename: enterprise/cmd/frontend/internal/codeintel/resolvers/mocks/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/codeintel/resolvers
interfaces:
- QueryResolver
- Resolver
- filename: enterprise/cmd/frontend/internal/executorqueue/handler/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/services/executors/store
interfaces:
- Store
- filename: enterprise/cmd/frontend/internal/executorqueue/queues/batches/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/executorqueue/queues/batches
interfaces:
- BatchesStore
- filename: enterprise/cmd/frontend/internal/registry/stores/dbmocks/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/internal/registry/stores
interfaces:
- ExtensionStore
- ReleaseStore
- filename: enterprise/cmd/precise-code-intel-worker/internal/worker/mocks_test.go
sources:
- path: github.com/sourcegraph/sourcegraph/enterprise/cmd/precise-code-intel-worker/internal/worker
interfaces:
- DBStore
- GitserverClient
- LSIFStore
- path: github.com/sourcegraph/sourcegraph/internal/workerutil/dbworker/store
interfaces:
- Store
prefix: Worker
- filename: enterprise/cmd/worker/internal/codeintel/indexing/mocks_test.go
sources:
- path: github.com/sourcegraph/sourcegraph/enterprise/cmd/worker/internal/codeintel/indexing
interfaces:
- DBStore
- ExternalServiceStore
- GitserverClient
- IndexEnqueuer
- IndexingRepoStore
- IndexingSettingStore
- PolicyMatcher
- RepoUpdaterClient
- path: github.com/sourcegraph/sourcegraph/internal/codeintel/stores/dbstore
interfaces:
- PackageReferenceScanner
- path: github.com/sourcegraph/sourcegraph/internal/workerutil/dbworker/store
interfaces:
- Store
prefix: Worker
- filename: enterprise/cmd/worker/internal/codeintel/janitor/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/cmd/worker/internal/codeintel/janitor
interfaces:
- DBStore
- LSIFStore
- filename: enterprise/internal/batches/reconciler/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/batches/sources
interfaces:
- ChangesetSource
- ForkableChangesetSource
- filename: enterprise/internal/batches/sources/mocks_test.go
sources:
- path: github.com/sourcegraph/sourcegraph/enterprise/internal/batches/sources
interfaces:
- ChangesetSource
- SourcerStore
- path: github.com/sourcegraph/sourcegraph/internal/extsvc/bitbucketcloud
interfaces:
- Client
prefix: BitbucketCloud
- filename: enterprise/internal/batches/syncer/mocks_test.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/batches/syncer
interfaces:
- SyncStore
- filename: enterprise/internal/database/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/database
interfaces:
- CodeMonitorStore
- EnterpriseDB
- PermsStore
- filename: enterprise/internal/insights/background/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/insights/background
interfaces:
- RepoStore
- filename: enterprise/internal/insights/compression/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/insights/compression
interfaces:
- CommitStore
- filename: enterprise/internal/insights/discovery/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/insights/discovery
interfaces:
- IndexableReposLister
- RepoStore
- SettingStore
- filename: enterprise/internal/insights/store/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/enterprise/internal/insights/store
interfaces:
- DataSeriesStore
- InsightMetadataStore
- Interface
- filename: internal/authz/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/authz
interfaces:
- SubRepoPermissionChecker
- SubRepoPermissionsGetter
- filename: internal/codeintel/autoindexing/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/autoindexing
interfaces:
- DBStore
- GitServerClient
- InferenceService
- RepoUpdaterClient
- filename: internal/codeintel/autoindexing/background/scheduler/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/autoindexing/background/scheduler
interfaces:
- DBStore
- PolicyMatcher
- filename: internal/codeintel/autoindexing/internal/inference/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/autoindexing/internal/inference
interfaces:
- GitService
- SandboxService
- filename: internal/codeintel/dependencies/mocks_test.go
sources:
- path: github.com/sourcegraph/sourcegraph/internal/codeintel/dependencies
interfaces:
- LockfilesService
- Syncer
- localGitService
- path: github.com/sourcegraph/sourcegraph/internal/codeintel/dependencies/internal/store
interfaces:
- Store
- filename: internal/codeintel/dependencies/internal/lockfiles/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/dependencies/internal/lockfiles
interfaces:
- GitService
- filename: internal/codeintel/documents/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/documents/internal/store
interfaces:
- Store
- filename: internal/codeintel/policies/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/policies/internal/store
interfaces:
- Store
- filename: internal/codeintel/policies/background/repomatcher/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/policies/background/repomatcher
interfaces:
- DBStore
- filename: internal/codeintel/policies/enterprise/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/policies/enterprise
interfaces:
- GitserverClient
package: policies
- filename: internal/codeintel/stores/dbstore/migration/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/stores/dbstore/migration
interfaces:
- GitServerClient
- filename: internal/codeintel/symbols/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/symbols/internal/store
interfaces:
- Store
- filename: internal/codeintel/uploads/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/uploads/internal/store
interfaces:
- Store
- filename: internal/codeintel/uploads/background/cleanup/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/uploads/background/cleanup
interfaces:
- DBStore
- LSIFStore
- UploadService
- filename: internal/codeintel/uploads/background/commitgraph/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/uploads/background/commitgraph
interfaces:
- DBStore
- GitserverClient
- Locker
- filename: internal/codeintel/uploads/background/expiration/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/codeintel/uploads/background/expiration
interfaces:
- DBStore
- PolicyMatcher
- filename: internal/database/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/database
interfaces:
- AccessTokenStore
- AuthzStore
- BitbucketProjectPermissionsStore
- ConfStore
- DB
- EventLogStore
- ExternalServiceStore
- FeatureFlagStore
- GitserverLocalCloneStore
- GitserverRepoStore
- GlobalStateStore
- NamespaceStore
- OrgInvitationStore
- OrgMemberStore
- OrgStore
- PhabricatorStore
- RepoStore
- SavedSearchStore
- SearchContextsStore
- SecurityEventLogsStore
- SettingsStore
- SubRepoPermsStore
- TemporarySettingsStore
- UserCredentialsStore
- UserEmailsStore
- UserExternalAccountsStore
- UserPublicRepoStore
- UserStore
- WebhookLogStore
- filename: internal/database/migration/runner/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/database/migration/runner
interfaces:
- Store
- filename: internal/featureflag/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/featureflag
interfaces:
- Store
- filename: internal/gitserver/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/gitserver
interfaces:
- Client
- filename: internal/goroutine/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/goroutine
interfaces:
- BackgroundRoutine
- ErrorHandler
- Finalizer
- Handler
- filename: internal/insights/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/insights
interfaces:
- Loader
- filename: internal/oobmigration/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/oobmigration
interfaces:
- Migrator
- storeIface
- filename: internal/repos/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/repos
interfaces:
- Store
- filename: internal/search/client/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/search/client
interfaces:
- SearchClient
- filename: internal/search/job/mockjob/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/search/job
interfaces:
- Job
- filename: internal/uploadstore/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/uploadstore
interfaces:
- gcsAPI
- gcsBucketHandle
- gcsComposer
- gcsObjectHandle
- s3API
- s3Uploader
package: uploadstore
- filename: internal/uploadstore/mocks/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/uploadstore
interfaces:
- Store
- filename: internal/workerutil/mocks_test.go
path: github.com/sourcegraph/sourcegraph/internal/workerutil
interfaces:
- Handler
- Store
- WithHooks
- WithPreDequeue
- filename: internal/workerutil/dbworker/store/mocks/mocks_temp.go
path: github.com/sourcegraph/sourcegraph/internal/workerutil/dbworker/store
interfaces:
- Store