mirror of
https://github.com/hanzo-ml/katib.git
synced 2026-10-30 14:46:14 +00:00
* replace gomock Signed-off-by: forsaken628 <[email protected]> * fix Signed-off-by: forsaken628 <[email protected]> * revert Signed-off-by: forsaken628 <[email protected]> * fix Signed-off-by: forsaken628 <[email protected]> * fix Signed-off-by: forsaken628 <[email protected]> --------- Signed-off-by: forsaken628 <[email protected]>
85 lines
3.5 KiB
Go
85 lines
3.5 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/kubeflow/katib/pkg/controller.v1beta1/suggestion/suggestionclient (interfaces: SuggestionClient)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package mock -destination pkg/mock/v1beta1/suggestion/suggestionclient/suggestionclient.go github.com/kubeflow/katib/pkg/controller.v1beta1/suggestion/suggestionclient SuggestionClient
|
|
//
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
v1beta1 "github.com/kubeflow/katib/pkg/apis/controller/experiments/v1beta1"
|
|
v1beta10 "github.com/kubeflow/katib/pkg/apis/controller/suggestions/v1beta1"
|
|
v1beta11 "github.com/kubeflow/katib/pkg/apis/controller/trials/v1beta1"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockSuggestionClient is a mock of SuggestionClient interface.
|
|
type MockSuggestionClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockSuggestionClientMockRecorder
|
|
}
|
|
|
|
// MockSuggestionClientMockRecorder is the mock recorder for MockSuggestionClient.
|
|
type MockSuggestionClientMockRecorder struct {
|
|
mock *MockSuggestionClient
|
|
}
|
|
|
|
// NewMockSuggestionClient creates a new mock instance.
|
|
func NewMockSuggestionClient(ctrl *gomock.Controller) *MockSuggestionClient {
|
|
mock := &MockSuggestionClient{ctrl: ctrl}
|
|
mock.recorder = &MockSuggestionClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockSuggestionClient) EXPECT() *MockSuggestionClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// SyncAssignments mocks base method.
|
|
func (m *MockSuggestionClient) SyncAssignments(arg0 *v1beta10.Suggestion, arg1 *v1beta1.Experiment, arg2 []v1beta11.Trial) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SyncAssignments", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// SyncAssignments indicates an expected call of SyncAssignments.
|
|
func (mr *MockSuggestionClientMockRecorder) SyncAssignments(arg0, arg1, arg2 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SyncAssignments", reflect.TypeOf((*MockSuggestionClient)(nil).SyncAssignments), arg0, arg1, arg2)
|
|
}
|
|
|
|
// ValidateAlgorithmSettings mocks base method.
|
|
func (m *MockSuggestionClient) ValidateAlgorithmSettings(arg0 *v1beta10.Suggestion, arg1 *v1beta1.Experiment) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ValidateAlgorithmSettings", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// ValidateAlgorithmSettings indicates an expected call of ValidateAlgorithmSettings.
|
|
func (mr *MockSuggestionClientMockRecorder) ValidateAlgorithmSettings(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateAlgorithmSettings", reflect.TypeOf((*MockSuggestionClient)(nil).ValidateAlgorithmSettings), arg0, arg1)
|
|
}
|
|
|
|
// ValidateEarlyStoppingSettings mocks base method.
|
|
func (m *MockSuggestionClient) ValidateEarlyStoppingSettings(arg0 *v1beta10.Suggestion, arg1 *v1beta1.Experiment) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ValidateEarlyStoppingSettings", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// ValidateEarlyStoppingSettings indicates an expected call of ValidateEarlyStoppingSettings.
|
|
func (mr *MockSuggestionClientMockRecorder) ValidateEarlyStoppingSettings(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateEarlyStoppingSettings", reflect.TypeOf((*MockSuggestionClient)(nil).ValidateEarlyStoppingSettings), arg0, arg1)
|
|
}
|