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

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/source/gitlab/client/client_stub.go')
-rw-r--r--internal/source/gitlab/client/client_stub.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/source/gitlab/client/client_stub.go b/internal/source/gitlab/client/client_stub.go
index 604f127b..de6161e6 100644
--- a/internal/source/gitlab/client/client_stub.go
+++ b/internal/source/gitlab/client/client_stub.go
@@ -10,7 +10,8 @@ import (
// StubClient is a stubbed client used for testing
type StubClient struct {
- File string
+ File string
+ StatusErr func() error
}
// Resolve implements api.Resolver
@@ -35,3 +36,7 @@ func (c StubClient) GetLookup(ctx context.Context, host string) api.Lookup {
return lookup
}
+
+func (c StubClient) Status() error {
+ return c.StatusErr()
+}