forked from mozilla-services/heka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_mocks.sh
executable file
·74 lines (60 loc) · 3.12 KB
/
update_mocks.sh
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
# We use one spelling of the mockgen command for mocks of interfaces in our own
# packages...
# pipeline.MockPluginHelper
$GOPATH/bin/mockgen -package=pipeline \
-destination=pipeline/mock_pluginhelper_test.go \
-self_package=github.com/mozilla-services/heka/pipeline \
github.com/mozilla-services/heka/pipeline PluginHelper
# pipeline.PluginRunner
$GOPATH/bin/mockgen -package=pipeline \
-destination=pipeline/mock_pluginrunner_test.go \
-self_package=github.com/mozilla-services/heka/pipeline \
github.com/mozilla-services/heka/pipeline PluginRunner
# pipeline.Decoder
$GOPATH/bin/mockgen -package=pipeline \
-destination=pipeline/mock_decoder_test.go \
-self_package=github.com/mozilla-services/heka/pipeline \
github.com/mozilla-services/heka/pipeline Decoder
# pipeline.DecoderSet
$GOPATH/bin/mockgen -package=pipeline \
-destination=pipeline/mock_decoderset_test.go \
-self_package=github.com/mozilla-services/heka/pipeline \
github.com/mozilla-services/heka/pipeline DecoderSet
# pipeline.DecoderRunner
$GOPATH/bin/mockgen -package=pipeline \
-destination=pipeline/mock_decoderrunner_test.go \
-self_package=github.com/mozilla-services/heka/pipeline \
github.com/mozilla-services/heka/pipeline DecoderRunner
# pipeline.InputRunner
$GOPATH/bin/mockgen -package=pipeline \
-destination=pipeline/mock_inputrunner_test.go \
-self_package=github.com/mozilla-services/heka/pipeline \
github.com/mozilla-services/heka/pipeline InputRunner
# pipeline.OutputRunner
$GOPATH/bin/mockgen -package=pipeline \
-destination=pipeline/mock_outputrunner_test.go \
-self_package=github.com/mozilla-services/heka/pipeline \
github.com/mozilla-services/heka/pipeline OutputRunner
# pipeline.Input
$GOPATH/bin/mockgen -package=pipeline \
-destination=pipeline/mock_input_test.go \
-self_package=github.com/mozilla-services/heka/pipeline \
github.com/mozilla-services/heka/pipeline Input
# pipeline.WhisperRunner
$GOPATH/bin/mockgen -package=pipeline \
-destination=pipeline/mock_whisperrunner_test.go \
-self_package=github.com/mozilla-services/heka/pipeline \
github.com/mozilla-services/heka/pipeline WhisperRunner
# ...and a second spelling for mocks of interfaces that are from external packages.
# net.Conn
$GOPATH/bin/mockgen -package=testsupport \
-destination=testsupport/mock_net_conn.go \
net Conn
# net.Listener
$GOPATH/bin/mockgen -package=testsupport \
-destination=testsupport/mock_net_listener.go \
net Listener
# net.Error
$GOPATH/bin/mockgen -package=testsupport \
-destination=testsupport/mock_net_error.go \
net Error