File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ .PHONY : test lint cover mock_wire mock_gen
2+
3+ test :
4+ go test ./...
5+
6+ lint :
7+ golangci-lint run
8+
9+ cover :
10+ go test -coverprofile=cover.out -coverpkg=./... ./...
11+ go tool cover -html=cover.out -o cover.html
12+ open cover.html
13+
14+ mock_wire :
15+ @echo " Running wire for component mocks..."
16+ @go run -mod=mod github.com/google/wire/cmd/wire opencsg.com/csghub-server/component
17+ @if [ $$ ? -eq 0 ]; then \
18+ echo " Renaming wire_gen.go to wire_gen_test.go..." ; \
19+ mv component/wire_gen.go component/wire_gen_test.go; \
20+ else \
21+ echo " Wire failed, skipping renaming." ; \
22+ fi
23+
24+ mock_gen :
25+ mockery
File renamed without changes.
Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af h1:kmjWCqn2qkEml422C2
303303github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af /go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo =
304304github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o =
305305github.com/google/s2a-go v0.1.7 /go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw =
306+ github.com/google/subcommands v1.2.0 h1:vWQspBTo2nEqTUFita5/KeEWlUL8kQObDFbub/EN9oE =
306307github.com/google/subcommands v1.2.0 /go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk =
307308github.com/google/uuid v1.0.0 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
308309github.com/google/uuid v1.1.2 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
You can’t perform that action at this time.
0 commit comments