shad-go/distbuild/pkg/api/mock/heartbeat.go

51 lines
1.7 KiB
Go
Raw Normal View History

2020-04-04 16:19:01 +00:00
// Code generated by MockGen. DO NOT EDIT.
2023-10-02 19:32:41 +00:00
// Source: gitlab.com/manytask/itmo-go/private/distbuild/pkg/api (interfaces: HeartbeatService)
2020-04-04 16:19:01 +00:00
// Package mock is a generated GoMock package.
package mock
import (
context "context"
gomock "github.com/golang/mock/gomock"
2023-10-02 19:32:41 +00:00
api "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api"
2020-04-04 16:19:01 +00:00
reflect "reflect"
)
// MockHeartbeatService is a mock of HeartbeatService interface
type MockHeartbeatService struct {
ctrl *gomock.Controller
recorder *MockHeartbeatServiceMockRecorder
}
// MockHeartbeatServiceMockRecorder is the mock recorder for MockHeartbeatService
type MockHeartbeatServiceMockRecorder struct {
mock *MockHeartbeatService
}
// NewMockHeartbeatService creates a new mock instance
func NewMockHeartbeatService(ctrl *gomock.Controller) *MockHeartbeatService {
mock := &MockHeartbeatService{ctrl: ctrl}
mock.recorder = &MockHeartbeatServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockHeartbeatService) EXPECT() *MockHeartbeatServiceMockRecorder {
return m.recorder
}
// Heartbeat mocks base method
func (m *MockHeartbeatService) Heartbeat(arg0 context.Context, arg1 *api.HeartbeatRequest) (*api.HeartbeatResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Heartbeat", arg0, arg1)
ret0, _ := ret[0].(*api.HeartbeatResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Heartbeat indicates an expected call of Heartbeat
func (mr *MockHeartbeatServiceMockRecorder) Heartbeat(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Heartbeat", reflect.TypeOf((*MockHeartbeatService)(nil).Heartbeat), arg0, arg1)
}