forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mockery.yaml
60 lines (56 loc) · 1.79 KB
/
.mockery.yaml
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
with-expecter: false
dir: "{{.InterfaceDir}}/mocks"
outpkg: "mocks"
mockname: "{{.InterfaceName}}"
filename: "{{.InterfaceNameSnake}}.go"
packages:
# security agent
github.com/DataDog/datadog-agent/pkg/security/proto/api:
interfaces:
SecurityModuleServer:
SecurityModuleClient:
github.com/DataDog/datadog-agent/pkg/security/agent:
interfaces:
SecurityModuleClientWrapper:
github.com/DataDog/datadog-agent/pkg/eventmonitor/proto/api:
interfaces:
EventMonitoringModuleServer:
EventMonitoringModuleClient:
EventMonitoringModule_GetProcessEventsClient:
# processes
github.com/DataDog/datadog-agent/pkg/process/runner:
interfaces:
Submitter:
github.com/DataDog/datadog-agent/pkg/process/checks:
interfaces:
Check:
github.com/DataDog/datadog-agent/pkg/process/net:
interfaces:
SysProbeUtil:
config:
with-expecter: true
github.com/DataDog/datadog-agent/pkg/process/procutil:
interfaces:
Probe:
# serializer
github.com/DataDog/datadog-agent/pkg/serializer:
interfaces:
MetricSerializer:
config:
mock-build-tags: test
replace-type:
# https://github.com/vektra/mockery/issues/331
- github.com/DataDog/datadog-agent/pkg/serializer/types.stubMessageBody=github.com/DataDog/datadog-agent/pkg/serializer/types.ProcessMessageBody
# gpu
github.com/DataDog/datadog-agent/pkg/collector/corechecks/gpu/nvidia:
interfaces:
Collector:
config:
with-expecter: true
mock-build-tags: "linux && test"
# Need to have it in the same package to avoid import loops!
inpackage: true
dir: "{{.InterfaceDir}}"
filename: "mocks.go"
outpkg: nvidia
mockname: mockCollector