-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Pubx-ai/PUB-3288
Update mocking and Testing Framework changes
- Loading branch information
Showing
19 changed files
with
1,147 additions
and
1,372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,28 @@ | ||
// Code generated by MockGen. DO NOT EDIT. | ||
// Source: ./analytics/pubxai/config/config.go | ||
|
||
// Package mocks is a generated GoMock package. | ||
package mocks | ||
|
||
import ( | ||
reflect "reflect" | ||
|
||
gomock "github.com/golang/mock/gomock" | ||
config "github.com/prebid/prebid-server/v3/analytics/pubxai/config" | ||
"github.com/prebid/prebid-server/v3/analytics/pubxai/config" | ||
"github.com/stretchr/testify/mock" | ||
) | ||
|
||
// MockConfigService is a mock of ConfigService interface. | ||
// MockConfigService is a mock of ConfigService interface using testify | ||
type MockConfigService struct { | ||
ctrl *gomock.Controller | ||
recorder *MockConfigServiceMockRecorder | ||
} | ||
|
||
// MockConfigServiceMockRecorder is the mock recorder for MockConfigService. | ||
type MockConfigServiceMockRecorder struct { | ||
mock *MockConfigService | ||
} | ||
|
||
// NewMockConfigService creates a new mock instance. | ||
func NewMockConfigService(ctrl *gomock.Controller) *MockConfigService { | ||
mock := &MockConfigService{ctrl: ctrl} | ||
mock.recorder = &MockConfigServiceMockRecorder{mock} | ||
return mock | ||
mock.Mock | ||
} | ||
|
||
// EXPECT returns an object that allows the caller to indicate expected use. | ||
func (m *MockConfigService) EXPECT() *MockConfigServiceMockRecorder { | ||
return m.recorder | ||
// NewMockConfigService creates a new mock instance | ||
func NewMockConfigService() *MockConfigService { | ||
return &MockConfigService{} | ||
} | ||
|
||
// IsSameAs mocks base method. | ||
// IsSameAs provides a mock function | ||
func (m *MockConfigService) IsSameAs(a, b *config.Configuration) bool { | ||
m.ctrl.T.Helper() | ||
ret := m.ctrl.Call(m, "IsSameAs", a, b) | ||
ret0, _ := ret[0].(bool) | ||
return ret0 | ||
} | ||
|
||
// IsSameAs indicates an expected call of IsSameAs. | ||
func (mr *MockConfigServiceMockRecorder) IsSameAs(a, b interface{}) *gomock.Call { | ||
mr.mock.ctrl.T.Helper() | ||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSameAs", reflect.TypeOf((*MockConfigService)(nil).IsSameAs), a, b) | ||
args := m.Called(a, b) | ||
return args.Bool(0) | ||
} | ||
|
||
// Start mocks base method. | ||
// Start provides a mock function | ||
func (m *MockConfigService) Start(stop <-chan struct{}) <-chan *config.Configuration { | ||
m.ctrl.T.Helper() | ||
ret := m.ctrl.Call(m, "Start", stop) | ||
ret0, _ := ret[0].(<-chan *config.Configuration) | ||
return ret0 | ||
} | ||
|
||
// Start indicates an expected call of Start. | ||
func (mr *MockConfigServiceMockRecorder) Start(stop interface{}) *gomock.Call { | ||
mr.mock.ctrl.T.Helper() | ||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockConfigService)(nil).Start), stop) | ||
args := m.Called(stop) | ||
return args.Get(0).(<-chan *config.Configuration) | ||
} |
Oops, something went wrong.