/
eresourcefactoryregistry_mock.go
71 lines (57 loc) · 1.84 KB
/
eresourcefactoryregistry_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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Code generated by mockery v1.0.0. DO NOT EDIT.
// *****************************************************************************
// Copyright(c) 2021 MASA Group
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// *****************************************************************************
package ecore
import (
url "net/url"
mock "github.com/stretchr/testify/mock"
)
// MockEResourceFactoryRegistry is an autogenerated mock type for the EResourceFactoryRegistry type
type MockEResourceFactoryRegistry struct {
mock.Mock
}
// GetExtensionToFactoryMap provides a mock function with given fields:
func (_m *MockEResourceFactoryRegistry) GetExtensionToFactoryMap() map[string]EResourceFactory {
ret := _m.Called()
var r0 map[string]EResourceFactory
if rf, ok := ret.Get(0).(func() map[string]EResourceFactory); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]EResourceFactory)
}
}
return r0
}
// GetFactory provides a mock function with given fields: uri
func (_m *MockEResourceFactoryRegistry) GetFactory(uri *url.URL) EResourceFactory {
ret := _m.Called(uri)
var r0 EResourceFactory
if rf, ok := ret.Get(0).(func(*url.URL) EResourceFactory); ok {
r0 = rf(uri)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(EResourceFactory)
}
}
return r0
}
// GetProtocolToFactoryMap provides a mock function with given fields:
func (_m *MockEResourceFactoryRegistry) GetProtocolToFactoryMap() map[string]EResourceFactory {
ret := _m.Called()
var r0 map[string]EResourceFactory
if rf, ok := ret.Get(0).(func() map[string]EResourceFactory); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]EResourceFactory)
}
}
return r0
}