-
Notifications
You must be signed in to change notification settings - Fork 104
/
Makefile
46 lines (38 loc) · 1.78 KB
/
Makefile
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
devsetup:
go install github.com/golangci/golangci-lint/cmd/[email protected]
go install github.com/vektra/mockery/[email protected]
test:
go test ./
fasttest:
go test -short ./
cover:
go test -coverprofile=cover.out ./
lint:
golangci-lint run -v
check: lint
go test -short -cover -race ./
bench:
go test -bench=. -run=none --disable-logger=true
updatetestcases:
git submodule update --remote --init --recursive
updatemocks:
mockery --name=connectionManager --output=. --testonly --inpackage
mockery --name=kvProvider --output=. --testonly --inpackage
mockery --name=httpProvider --output=. --testonly --inpackage
mockery --name=diagnosticsProvider --output=. --testonly --inpackage
mockery --name=mgmtProvider --output=. --testonly --inpackage
mockery --name=analyticsProvider --output=. --testonly --inpackage
mockery --name=queryProvider --output=. --testonly --inpackage
mockery --name=searchProvider --output=. --testonly --inpackage
mockery --name=viewProvider --output=. --testonly --inpackage
mockery --name=waitUntilReadyProvider --output=. --testonly --inpackage
mockery --name=kvCapabilityVerifier --output=. --testonly --inpackage
mockery --name=kvProviderCoreProvider --output=. --testonly --inpackage
mockery --name=queryProviderCoreProvider --output=. --testonly --inpackage
mockery --name=searchProviderCoreProvider --output=. --testonly --inpackage
mockery --name=searchCapabilityVerifier --output=. --testonly --inpackage
mockery --name=viewProviderCoreProvider --output=. --testonly --inpackage
mockery --name=analyticsProviderCoreProvider --output=. --testonly --inpackage
mockery --name=diagnosticsProviderCoreProvider --output=. --testonly --inpackage
# pendingOp is manually mocked
.PHONY: all test devsetup fasttest lint cover check bench updatetestcases updatemocks