forked from CyCoreSystems/ari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Asterisk.go
96 lines (78 loc) · 1.85 KB
/
Asterisk.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package arimocks
import ari "github.com/CyCoreSystems/ari"
import mock "github.com/stretchr/testify/mock"
// Asterisk is an autogenerated mock type for the Asterisk type
type Asterisk struct {
mock.Mock
}
// Config provides a mock function with given fields:
func (_m *Asterisk) Config() ari.Config {
ret := _m.Called()
var r0 ari.Config
if rf, ok := ret.Get(0).(func() ari.Config); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ari.Config)
}
}
return r0
}
// Info provides a mock function with given fields: key
func (_m *Asterisk) Info(key *ari.Key) (*ari.AsteriskInfo, error) {
ret := _m.Called(key)
var r0 *ari.AsteriskInfo
if rf, ok := ret.Get(0).(func(*ari.Key) *ari.AsteriskInfo); ok {
r0 = rf(key)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ari.AsteriskInfo)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ari.Key) error); ok {
r1 = rf(key)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Logging provides a mock function with given fields:
func (_m *Asterisk) Logging() ari.Logging {
ret := _m.Called()
var r0 ari.Logging
if rf, ok := ret.Get(0).(func() ari.Logging); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ari.Logging)
}
}
return r0
}
// Modules provides a mock function with given fields:
func (_m *Asterisk) Modules() ari.Modules {
ret := _m.Called()
var r0 ari.Modules
if rf, ok := ret.Get(0).(func() ari.Modules); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ari.Modules)
}
}
return r0
}
// Variables provides a mock function with given fields:
func (_m *Asterisk) Variables() ari.AsteriskVariables {
ret := _m.Called()
var r0 ari.AsteriskVariables
if rf, ok := ret.Get(0).(func() ari.AsteriskVariables); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ari.AsteriskVariables)
}
}
return r0
}