From 2a121b0e3bc7fb85e36a5088e23ef59d401a78be Mon Sep 17 00:00:00 2001 From: Anand Swaminathan Date: Fri, 11 Oct 2019 13:23:59 -0700 Subject: [PATCH] checking in generated weighted_random_list (#41) * checking in generated weighted_random_list * Regenerate everything * Regenerate * Fix lint --- cache/mocks/AutoRefresh.go | 56 +++++++++- cache/mocks/Item.go | 2 +- cache/mocks/ItemWrapper.go | 38 ++++++- logger/config_flags_test.go | 66 ------------ logger/logger.go | 2 - random/mocks/WeightedRandomList.go | 81 -------------- random/mocks/comparable.go | 43 ++++++++ random/mocks/weighted_random_list.go | 153 +++++++++++++++++++++++++++ storage/protobuf_store_test.go | 3 +- utils/mocks/auto_refresh_cache.go | 38 ++++++- utils/mocks/cache_item.go | 20 +++- utils/mocks/rate_limiter.go | 20 +++- utils/mocks/sequencer.go | 38 ++++++- 13 files changed, 403 insertions(+), 157 deletions(-) delete mode 100644 random/mocks/WeightedRandomList.go create mode 100644 random/mocks/comparable.go create mode 100644 random/mocks/weighted_random_list.go diff --git a/cache/mocks/AutoRefresh.go b/cache/mocks/AutoRefresh.go index 5ea113bc9a..933f093f89 100644 --- a/cache/mocks/AutoRefresh.go +++ b/cache/mocks/AutoRefresh.go @@ -1,4 +1,4 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. +// Code generated by mockery v1.0.1. DO NOT EDIT. package mocks @@ -11,6 +11,24 @@ type AutoRefresh struct { mock.Mock } +type AutoRefresh_Get struct { + *mock.Call +} + +func (_m AutoRefresh_Get) Return(_a0 cache.Item, _a1 error) *AutoRefresh_Get { + return &AutoRefresh_Get{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AutoRefresh) OnGet(id string) *AutoRefresh_Get { + c := _m.On("Get", id) + return &AutoRefresh_Get{Call: c} +} + +func (_m *AutoRefresh) OnGetMatch(matchers ...interface{}) *AutoRefresh_Get { + c := _m.On("Get", matchers...) + return &AutoRefresh_Get{Call: c} +} + // Get provides a mock function with given fields: id func (_m *AutoRefresh) Get(id string) (cache.Item, error) { ret := _m.Called(id) @@ -34,6 +52,24 @@ func (_m *AutoRefresh) Get(id string) (cache.Item, error) { return r0, r1 } +type AutoRefresh_GetOrCreate struct { + *mock.Call +} + +func (_m AutoRefresh_GetOrCreate) Return(_a0 cache.Item, _a1 error) *AutoRefresh_GetOrCreate { + return &AutoRefresh_GetOrCreate{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AutoRefresh) OnGetOrCreate(id string, item cache.Item) *AutoRefresh_GetOrCreate { + c := _m.On("GetOrCreate", id, item) + return &AutoRefresh_GetOrCreate{Call: c} +} + +func (_m *AutoRefresh) OnGetOrCreateMatch(matchers ...interface{}) *AutoRefresh_GetOrCreate { + c := _m.On("GetOrCreate", matchers...) + return &AutoRefresh_GetOrCreate{Call: c} +} + // GetOrCreate provides a mock function with given fields: id, item func (_m *AutoRefresh) GetOrCreate(id string, item cache.Item) (cache.Item, error) { ret := _m.Called(id, item) @@ -57,6 +93,24 @@ func (_m *AutoRefresh) GetOrCreate(id string, item cache.Item) (cache.Item, erro return r0, r1 } +type AutoRefresh_Start struct { + *mock.Call +} + +func (_m AutoRefresh_Start) Return(_a0 error) *AutoRefresh_Start { + return &AutoRefresh_Start{Call: _m.Call.Return(_a0)} +} + +func (_m *AutoRefresh) OnStart(ctx context.Context) *AutoRefresh_Start { + c := _m.On("Start", ctx) + return &AutoRefresh_Start{Call: c} +} + +func (_m *AutoRefresh) OnStartMatch(matchers ...interface{}) *AutoRefresh_Start { + c := _m.On("Start", matchers...) + return &AutoRefresh_Start{Call: c} +} + // Start provides a mock function with given fields: ctx func (_m *AutoRefresh) Start(ctx context.Context) error { ret := _m.Called(ctx) diff --git a/cache/mocks/Item.go b/cache/mocks/Item.go index ddb64732ec..23dd8c5bb7 100644 --- a/cache/mocks/Item.go +++ b/cache/mocks/Item.go @@ -1,4 +1,4 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. +// Code generated by mockery v1.0.1. DO NOT EDIT. package mocks diff --git a/cache/mocks/ItemWrapper.go b/cache/mocks/ItemWrapper.go index d53cde272e..4deb009a8a 100644 --- a/cache/mocks/ItemWrapper.go +++ b/cache/mocks/ItemWrapper.go @@ -1,4 +1,4 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. +// Code generated by mockery v1.0.1. DO NOT EDIT. package mocks @@ -10,6 +10,24 @@ type ItemWrapper struct { mock.Mock } +type ItemWrapper_GetID struct { + *mock.Call +} + +func (_m ItemWrapper_GetID) Return(_a0 string) *ItemWrapper_GetID { + return &ItemWrapper_GetID{Call: _m.Call.Return(_a0)} +} + +func (_m *ItemWrapper) OnGetID() *ItemWrapper_GetID { + c := _m.On("GetID") + return &ItemWrapper_GetID{Call: c} +} + +func (_m *ItemWrapper) OnGetIDMatch(matchers ...interface{}) *ItemWrapper_GetID { + c := _m.On("GetID", matchers...) + return &ItemWrapper_GetID{Call: c} +} + // GetID provides a mock function with given fields: func (_m *ItemWrapper) GetID() string { ret := _m.Called() @@ -24,6 +42,24 @@ func (_m *ItemWrapper) GetID() string { return r0 } +type ItemWrapper_GetItem struct { + *mock.Call +} + +func (_m ItemWrapper_GetItem) Return(_a0 cache.Item) *ItemWrapper_GetItem { + return &ItemWrapper_GetItem{Call: _m.Call.Return(_a0)} +} + +func (_m *ItemWrapper) OnGetItem() *ItemWrapper_GetItem { + c := _m.On("GetItem") + return &ItemWrapper_GetItem{Call: c} +} + +func (_m *ItemWrapper) OnGetItemMatch(matchers ...interface{}) *ItemWrapper_GetItem { + c := _m.On("GetItem", matchers...) + return &ItemWrapper_GetItem{Call: c} +} + // GetItem provides a mock function with given fields: func (_m *ItemWrapper) GetItem() cache.Item { ret := _m.Called() diff --git a/logger/config_flags_test.go b/logger/config_flags_test.go index 03b9878515..fd2ce27db2 100755 --- a/logger/config_flags_test.go +++ b/logger/config_flags_test.go @@ -188,69 +188,3 @@ func TestConfig_SetFlags(t *testing.T) { }) }) } - -func TestConfig_elemValueOrNil(t *testing.T) { - type fields struct { - IncludeSourceCode bool - Mute bool - Level Level - Formatter FormatterConfig - } - type args struct { - v interface{} - } - tests := []struct { - name string - fields fields - args args - want interface{} - }{ - // TODO: Add test cases. - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - c := Config{ - IncludeSourceCode: tt.fields.IncludeSourceCode, - Mute: tt.fields.Mute, - Level: tt.fields.Level, - Formatter: tt.fields.Formatter, - } - if got := c.elemValueOrNil(tt.args.v); !reflect.DeepEqual(got, tt.want) { - t.Errorf("Config.elemValueOrNil() = %v, want %v", got, tt.want) - } - }) - } -} - -func TestConfig_mustMarshalJSON(t *testing.T) { - type fields struct { - IncludeSourceCode bool - Mute bool - Level Level - Formatter FormatterConfig - } - type args struct { - v json.Marshaler - } - tests := []struct { - name string - fields fields - args args - want string - }{ - // TODO: Add test cases. - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - c := Config{ - IncludeSourceCode: tt.fields.IncludeSourceCode, - Mute: tt.fields.Mute, - Level: tt.fields.Level, - Formatter: tt.fields.Formatter, - } - if got := c.mustMarshalJSON(tt.args.v); got != tt.want { - t.Errorf("Config.mustMarshalJSON() = %v, want %v", got, tt.want) - } - }) - } -} diff --git a/logger/logger.go b/logger/logger.go index f1c847542c..9c21ae7bd5 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -16,8 +16,6 @@ import ( "github.com/sirupsen/logrus" ) -//go:generate gotests -w -all $FILE - const ( indentLevelKey contextutils.Key = "LoggerIndentLevel" sourceCodeKey string = "src" diff --git a/random/mocks/WeightedRandomList.go b/random/mocks/WeightedRandomList.go deleted file mode 100644 index 38c7318065..0000000000 --- a/random/mocks/WeightedRandomList.go +++ /dev/null @@ -1,81 +0,0 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. - -package mocks - -import mock "github.com/stretchr/testify/mock" -import rand "math/rand" -import random "github.com/lyft/flytestdlib/random" - -// WeightedRandomList is an autogenerated mock type for the WeightedRandomList type -type WeightedRandomList struct { - mock.Mock -} - -// Get provides a mock function with given fields: -func (_m *WeightedRandomList) Get() random.Comparable { - ret := _m.Called() - - var r0 random.Comparable - if rf, ok := ret.Get(0).(func() random.Comparable); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(random.Comparable) - } - } - - return r0 -} - -// GetWithSeed provides a mock function with given fields: seed -func (_m *WeightedRandomList) GetWithSeed(seed rand.Source) (random.Comparable, error) { - ret := _m.Called(seed) - - var r0 random.Comparable - if rf, ok := ret.Get(0).(func(rand.Source) random.Comparable); ok { - r0 = rf(seed) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(random.Comparable) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(rand.Source) error); ok { - r1 = rf(seed) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// Len provides a mock function with given fields: -func (_m *WeightedRandomList) Len() int { - ret := _m.Called() - - var r0 int - if rf, ok := ret.Get(0).(func() int); ok { - r0 = rf() - } else { - r0 = ret.Get(0).(int) - } - - return r0 -} - -// List provides a mock function with given fields: -func (_m *WeightedRandomList) List() []random.Comparable { - ret := _m.Called() - - var r0 []random.Comparable - if rf, ok := ret.Get(0).(func() []random.Comparable); ok { - r0 = rf() - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]random.Comparable) - } - } - - return r0 -} diff --git a/random/mocks/comparable.go b/random/mocks/comparable.go new file mode 100644 index 0000000000..4cd553aba0 --- /dev/null +++ b/random/mocks/comparable.go @@ -0,0 +1,43 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import mock "github.com/stretchr/testify/mock" +import random "github.com/lyft/flytestdlib/random" + +// Comparable is an autogenerated mock type for the Comparable type +type Comparable struct { + mock.Mock +} + +type Comparable_Compare struct { + *mock.Call +} + +func (_m Comparable_Compare) Return(_a0 bool) *Comparable_Compare { + return &Comparable_Compare{Call: _m.Call.Return(_a0)} +} + +func (_m *Comparable) OnCompare(to random.Comparable) *Comparable_Compare { + c := _m.On("Compare", to) + return &Comparable_Compare{Call: c} +} + +func (_m *Comparable) OnCompareMatch(matchers ...interface{}) *Comparable_Compare { + c := _m.On("Compare", matchers...) + return &Comparable_Compare{Call: c} +} + +// Compare provides a mock function with given fields: to +func (_m *Comparable) Compare(to random.Comparable) bool { + ret := _m.Called(to) + + var r0 bool + if rf, ok := ret.Get(0).(func(random.Comparable) bool); ok { + r0 = rf(to) + } else { + r0 = ret.Get(0).(bool) + } + + return r0 +} diff --git a/random/mocks/weighted_random_list.go b/random/mocks/weighted_random_list.go new file mode 100644 index 0000000000..0860bc2570 --- /dev/null +++ b/random/mocks/weighted_random_list.go @@ -0,0 +1,153 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import mock "github.com/stretchr/testify/mock" +import rand "math/rand" +import random "github.com/lyft/flytestdlib/random" + +// WeightedRandomList is an autogenerated mock type for the WeightedRandomList type +type WeightedRandomList struct { + mock.Mock +} + +type WeightedRandomList_Get struct { + *mock.Call +} + +func (_m WeightedRandomList_Get) Return(_a0 random.Comparable) *WeightedRandomList_Get { + return &WeightedRandomList_Get{Call: _m.Call.Return(_a0)} +} + +func (_m *WeightedRandomList) OnGet() *WeightedRandomList_Get { + c := _m.On("Get") + return &WeightedRandomList_Get{Call: c} +} + +func (_m *WeightedRandomList) OnGetMatch(matchers ...interface{}) *WeightedRandomList_Get { + c := _m.On("Get", matchers...) + return &WeightedRandomList_Get{Call: c} +} + +// Get provides a mock function with given fields: +func (_m *WeightedRandomList) Get() random.Comparable { + ret := _m.Called() + + var r0 random.Comparable + if rf, ok := ret.Get(0).(func() random.Comparable); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(random.Comparable) + } + } + + return r0 +} + +type WeightedRandomList_GetWithSeed struct { + *mock.Call +} + +func (_m WeightedRandomList_GetWithSeed) Return(_a0 random.Comparable, _a1 error) *WeightedRandomList_GetWithSeed { + return &WeightedRandomList_GetWithSeed{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *WeightedRandomList) OnGetWithSeed(seed rand.Source) *WeightedRandomList_GetWithSeed { + c := _m.On("GetWithSeed", seed) + return &WeightedRandomList_GetWithSeed{Call: c} +} + +func (_m *WeightedRandomList) OnGetWithSeedMatch(matchers ...interface{}) *WeightedRandomList_GetWithSeed { + c := _m.On("GetWithSeed", matchers...) + return &WeightedRandomList_GetWithSeed{Call: c} +} + +// GetWithSeed provides a mock function with given fields: seed +func (_m *WeightedRandomList) GetWithSeed(seed rand.Source) (random.Comparable, error) { + ret := _m.Called(seed) + + var r0 random.Comparable + if rf, ok := ret.Get(0).(func(rand.Source) random.Comparable); ok { + r0 = rf(seed) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(random.Comparable) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(rand.Source) error); ok { + r1 = rf(seed) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type WeightedRandomList_Len struct { + *mock.Call +} + +func (_m WeightedRandomList_Len) Return(_a0 int) *WeightedRandomList_Len { + return &WeightedRandomList_Len{Call: _m.Call.Return(_a0)} +} + +func (_m *WeightedRandomList) OnLen() *WeightedRandomList_Len { + c := _m.On("Len") + return &WeightedRandomList_Len{Call: c} +} + +func (_m *WeightedRandomList) OnLenMatch(matchers ...interface{}) *WeightedRandomList_Len { + c := _m.On("Len", matchers...) + return &WeightedRandomList_Len{Call: c} +} + +// Len provides a mock function with given fields: +func (_m *WeightedRandomList) Len() int { + ret := _m.Called() + + var r0 int + if rf, ok := ret.Get(0).(func() int); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(int) + } + + return r0 +} + +type WeightedRandomList_List struct { + *mock.Call +} + +func (_m WeightedRandomList_List) Return(_a0 []random.Comparable) *WeightedRandomList_List { + return &WeightedRandomList_List{Call: _m.Call.Return(_a0)} +} + +func (_m *WeightedRandomList) OnList() *WeightedRandomList_List { + c := _m.On("List") + return &WeightedRandomList_List{Call: c} +} + +func (_m *WeightedRandomList) OnListMatch(matchers ...interface{}) *WeightedRandomList_List { + c := _m.On("List", matchers...) + return &WeightedRandomList_List{Call: c} +} + +// List provides a mock function with given fields: +func (_m *WeightedRandomList) List() []random.Comparable { + ret := _m.Called() + + var r0 []random.Comparable + if rf, ok := ret.Get(0).(func() []random.Comparable); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]random.Comparable) + } + } + + return r0 +} diff --git a/storage/protobuf_store_test.go b/storage/protobuf_store_test.go index 44ac0c4084..ca45d80dd1 100644 --- a/storage/protobuf_store_test.go +++ b/storage/protobuf_store_test.go @@ -74,7 +74,8 @@ func TestDefaultProtobufStore_BigDataReadAfterWrite(t *testing.T) { bigD := make([]byte, 1.5*1024*1024) // #nosec G404 - rand.Read(bigD) + _, err = rand.Read(bigD) + assert.NoError(t, err) mockMessage := &mockBigDataProtoMessage{X: bigD} diff --git a/utils/mocks/auto_refresh_cache.go b/utils/mocks/auto_refresh_cache.go index 9c6f13efc2..39cec72cb3 100644 --- a/utils/mocks/auto_refresh_cache.go +++ b/utils/mocks/auto_refresh_cache.go @@ -1,4 +1,4 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. +// Code generated by mockery v1.0.1. DO NOT EDIT. package mocks @@ -11,6 +11,24 @@ type AutoRefreshCache struct { mock.Mock } +type AutoRefreshCache_Get struct { + *mock.Call +} + +func (_m AutoRefreshCache_Get) Return(_a0 utils.CacheItem) *AutoRefreshCache_Get { + return &AutoRefreshCache_Get{Call: _m.Call.Return(_a0)} +} + +func (_m *AutoRefreshCache) OnGet(id string) *AutoRefreshCache_Get { + c := _m.On("Get", id) + return &AutoRefreshCache_Get{Call: c} +} + +func (_m *AutoRefreshCache) OnGetMatch(matchers ...interface{}) *AutoRefreshCache_Get { + c := _m.On("Get", matchers...) + return &AutoRefreshCache_Get{Call: c} +} + // Get provides a mock function with given fields: id func (_m *AutoRefreshCache) Get(id string) utils.CacheItem { ret := _m.Called(id) @@ -27,6 +45,24 @@ func (_m *AutoRefreshCache) Get(id string) utils.CacheItem { return r0 } +type AutoRefreshCache_GetOrCreate struct { + *mock.Call +} + +func (_m AutoRefreshCache_GetOrCreate) Return(_a0 utils.CacheItem, _a1 error) *AutoRefreshCache_GetOrCreate { + return &AutoRefreshCache_GetOrCreate{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AutoRefreshCache) OnGetOrCreate(item utils.CacheItem) *AutoRefreshCache_GetOrCreate { + c := _m.On("GetOrCreate", item) + return &AutoRefreshCache_GetOrCreate{Call: c} +} + +func (_m *AutoRefreshCache) OnGetOrCreateMatch(matchers ...interface{}) *AutoRefreshCache_GetOrCreate { + c := _m.On("GetOrCreate", matchers...) + return &AutoRefreshCache_GetOrCreate{Call: c} +} + // GetOrCreate provides a mock function with given fields: item func (_m *AutoRefreshCache) GetOrCreate(item utils.CacheItem) (utils.CacheItem, error) { ret := _m.Called(item) diff --git a/utils/mocks/cache_item.go b/utils/mocks/cache_item.go index b802e5bbab..5f69a24d7b 100644 --- a/utils/mocks/cache_item.go +++ b/utils/mocks/cache_item.go @@ -1,4 +1,4 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. +// Code generated by mockery v1.0.1. DO NOT EDIT. package mocks @@ -9,6 +9,24 @@ type CacheItem struct { mock.Mock } +type CacheItem_ID struct { + *mock.Call +} + +func (_m CacheItem_ID) Return(_a0 string) *CacheItem_ID { + return &CacheItem_ID{Call: _m.Call.Return(_a0)} +} + +func (_m *CacheItem) OnID() *CacheItem_ID { + c := _m.On("ID") + return &CacheItem_ID{Call: c} +} + +func (_m *CacheItem) OnIDMatch(matchers ...interface{}) *CacheItem_ID { + c := _m.On("ID", matchers...) + return &CacheItem_ID{Call: c} +} + // ID provides a mock function with given fields: func (_m *CacheItem) ID() string { ret := _m.Called() diff --git a/utils/mocks/rate_limiter.go b/utils/mocks/rate_limiter.go index 7a10626e92..d1eec57b9d 100644 --- a/utils/mocks/rate_limiter.go +++ b/utils/mocks/rate_limiter.go @@ -1,4 +1,4 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. +// Code generated by mockery v1.0.1. DO NOT EDIT. package mocks @@ -10,6 +10,24 @@ type RateLimiter struct { mock.Mock } +type RateLimiter_Wait struct { + *mock.Call +} + +func (_m RateLimiter_Wait) Return(_a0 error) *RateLimiter_Wait { + return &RateLimiter_Wait{Call: _m.Call.Return(_a0)} +} + +func (_m *RateLimiter) OnWait(ctx context.Context) *RateLimiter_Wait { + c := _m.On("Wait", ctx) + return &RateLimiter_Wait{Call: c} +} + +func (_m *RateLimiter) OnWaitMatch(matchers ...interface{}) *RateLimiter_Wait { + c := _m.On("Wait", matchers...) + return &RateLimiter_Wait{Call: c} +} + // Wait provides a mock function with given fields: ctx func (_m *RateLimiter) Wait(ctx context.Context) error { ret := _m.Called(ctx) diff --git a/utils/mocks/sequencer.go b/utils/mocks/sequencer.go index 0fc724b412..ac5843698d 100644 --- a/utils/mocks/sequencer.go +++ b/utils/mocks/sequencer.go @@ -1,4 +1,4 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. +// Code generated by mockery v1.0.1. DO NOT EDIT. package mocks @@ -9,6 +9,24 @@ type Sequencer struct { mock.Mock } +type Sequencer_GetCur struct { + *mock.Call +} + +func (_m Sequencer_GetCur) Return(_a0 uint64) *Sequencer_GetCur { + return &Sequencer_GetCur{Call: _m.Call.Return(_a0)} +} + +func (_m *Sequencer) OnGetCur() *Sequencer_GetCur { + c := _m.On("GetCur") + return &Sequencer_GetCur{Call: c} +} + +func (_m *Sequencer) OnGetCurMatch(matchers ...interface{}) *Sequencer_GetCur { + c := _m.On("GetCur", matchers...) + return &Sequencer_GetCur{Call: c} +} + // GetCur provides a mock function with given fields: func (_m *Sequencer) GetCur() uint64 { ret := _m.Called() @@ -23,6 +41,24 @@ func (_m *Sequencer) GetCur() uint64 { return r0 } +type Sequencer_GetNext struct { + *mock.Call +} + +func (_m Sequencer_GetNext) Return(_a0 uint64) *Sequencer_GetNext { + return &Sequencer_GetNext{Call: _m.Call.Return(_a0)} +} + +func (_m *Sequencer) OnGetNext() *Sequencer_GetNext { + c := _m.On("GetNext") + return &Sequencer_GetNext{Call: c} +} + +func (_m *Sequencer) OnGetNextMatch(matchers ...interface{}) *Sequencer_GetNext { + c := _m.On("GetNext", matchers...) + return &Sequencer_GetNext{Call: c} +} + // GetNext provides a mock function with given fields: func (_m *Sequencer) GetNext() uint64 { ret := _m.Called()