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:
authorJaime Martinez <jmartinez@gitlab.com>2020-07-27 04:13:51 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-08-04 09:44:10 +0300
commit3c58f5f641c8f8dd51358fd812cffeb6491e75cc (patch)
treea7b260e0c6528cd173833cafe41da50304c6d0a4 /internal/source/source_mock.go
parent194bf0568619be8df50a51ed5979a34d4f697b7d (diff)
Use IsReady instead
Diffstat (limited to 'internal/source/source_mock.go')
-rw-r--r--internal/source/source_mock.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/source/source_mock.go b/internal/source/source_mock.go
index ee24d804..7c693eb1 100644
--- a/internal/source/source_mock.go
+++ b/internal/source/source_mock.go
@@ -18,6 +18,12 @@ func (m *MockSource) GetDomain(name string) (*domain.Domain, error) {
return args.Get(0).(*domain.Domain), args.Error(1)
}
+func (m *MockSource) IsReady() bool {
+ args := m.Called()
+
+ return args.Get(0).(bool)
+}
+
// NewMockSource returns a new Source mock for testing
func NewMockSource() *MockSource {
return &MockSource{}