diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-07-27 04:13:51 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-08-07 08:12:40 +0300 |
commit | a3b311f1522a756997a88aa3dabdf1c46acb0cfa (patch) | |
tree | 2d6d8291c3436654dc01043ca7cea54b02378ae0 | |
parent | 2413f92f5ca9f82b08b74ddaaf202f1e69a4afd2 (diff) |
Use IsReady instead
-rw-r--r-- | internal/source/source_mock.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/source/source_mock.go b/internal/source/source_mock.go index d7cd1533..4d67b0be 100644 --- a/internal/source/source_mock.go +++ b/internal/source/source_mock.go @@ -30,6 +30,12 @@ func (m *MockSource) IsReady() bool { return args.Get(0).(bool) } +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{} |