/
loader.go
79 lines (60 loc) · 1.36 KB
/
loader.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
package mocks
import mock "github.com/stretchr/testify/mock"
import token "github.com/mcc-github/blockchain/protos/token"
type Loader struct {
mock.Mock
}
func (_m *Loader) Shares(s string) ([]*token.RecipientShare, error) {
ret := _m.Called(s)
var r0 []*token.RecipientShare
if rf, ok := ret.Get(0).(func(string) []*token.RecipientShare); ok {
r0 = rf(s)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*token.RecipientShare)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(s)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
func (_m *Loader) TokenIDs(s string) ([]*token.TokenId, error) {
ret := _m.Called(s)
var r0 []*token.TokenId
if rf, ok := ret.Get(0).(func(string) []*token.TokenId); ok {
r0 = rf(s)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*token.TokenId)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(s)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
func (_m *Loader) TokenOwner(s string) (*token.TokenOwner, error) {
ret := _m.Called(s)
var r0 *token.TokenOwner
if rf, ok := ret.Get(0).(func(string) *token.TokenOwner); ok {
r0 = rf(s)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*token.TokenOwner)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(s)
} else {
r1 = ret.Error(1)
}
return r0, r1
}