Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-12-13 11:15:12 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-12-16 09:40:38 +0300
commit45ee9b18552b019ef66f1a8a3dde8a9ab11cb7ba (patch)
treeb0f590a2b9be53fb8ed6d229f61ebde3ff49e85f
parent152dd3c663c73f79db4c1ff0f63b9011316e35a0 (diff)
glsql: Delete unused mock querier
The `MockQuerier` structure is not used anywhere. Delete it.
-rw-r--r--internal/praefect/datastore/glsql/mock.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/internal/praefect/datastore/glsql/mock.go b/internal/praefect/datastore/glsql/mock.go
deleted file mode 100644
index ccd1ddb85..000000000
--- a/internal/praefect/datastore/glsql/mock.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package glsql
-
-import (
- "context"
- "database/sql"
-)
-
-// MockQuerier allows for mocking database operations out.
-type MockQuerier struct {
- ExecContextFunc func(context.Context, string, ...interface{}) (sql.Result, error)
- QueryContextFunc func(context.Context, string, ...interface{}) (*sql.Rows, error)
- Querier
-}
-
-// ExecContext runs the mock's ExecContextFunc.
-func (m MockQuerier) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) {
- return m.ExecContextFunc(ctx, query, args...)
-}
-
-// QueryContext runs the mock's QueryContextFunc.
-func (m MockQuerier) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) {
- return m.QueryContextFunc(ctx, query, args...)
-}