-
Notifications
You must be signed in to change notification settings - Fork 1
/
device_style_repo_mock.go
51 lines (42 loc) · 1.92 KB
/
device_style_repo_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Code generated by MockGen. DO NOT EDIT.
// Source: device_style_repo.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
models "github.com/DIMO-Network/device-definitions-api/internal/infrastructure/db/models"
gomock "github.com/golang/mock/gomock"
)
// MockDeviceStyleRepository is a mock of DeviceStyleRepository interface.
type MockDeviceStyleRepository struct {
ctrl *gomock.Controller
recorder *MockDeviceStyleRepositoryMockRecorder
}
// MockDeviceStyleRepositoryMockRecorder is the mock recorder for MockDeviceStyleRepository.
type MockDeviceStyleRepositoryMockRecorder struct {
mock *MockDeviceStyleRepository
}
// NewMockDeviceStyleRepository creates a new mock instance.
func NewMockDeviceStyleRepository(ctrl *gomock.Controller) *MockDeviceStyleRepository {
mock := &MockDeviceStyleRepository{ctrl: ctrl}
mock.recorder = &MockDeviceStyleRepositoryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockDeviceStyleRepository) EXPECT() *MockDeviceStyleRepositoryMockRecorder {
return m.recorder
}
// Create mocks base method.
func (m *MockDeviceStyleRepository) Create(ctx context.Context, deviceDefinitionID, name, externalStyleID, source, subModel string) (*models.DeviceStyle, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", ctx, deviceDefinitionID, name, externalStyleID, source, subModel)
ret0, _ := ret[0].(*models.DeviceStyle)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Create indicates an expected call of Create.
func (mr *MockDeviceStyleRepositoryMockRecorder) Create(ctx, deviceDefinitionID, name, externalStyleID, source, subModel interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockDeviceStyleRepository)(nil).Create), ctx, deviceDefinitionID, name, externalStyleID, source, subModel)
}