-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 1.35 KB
/
Copy pathMakefile
File metadata and controls
28 lines (22 loc) · 1.35 KB
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
mockgen:
mockgen -destination=internal/mocks/mock_container_port.go -package mocks github.com/codigician/remote-code-execution/internal/rc ContainerPort
mockgen -destination=internal/mocks/mock_io_readcloser.go -package mocks io ReadCloser
mockgen -destination=internal/mocks/mock_conn.go -package mocks net Conn
mockgen -destination=internal/mocks/mock_container_client.go -package mocks github.com/codigician/remote-code-execution/internal/codexec ContainerClient
mockgen -destination=internal/mocks/mock_codexecutor.go -package mocks github.com/codigician/remote-code-execution/internal/codexec Codexecutor
mockgen -destination=internal/mocks/mock_remote_codexecutor_service.go -package mocks github.com/codigician/remote-code-execution/internal/handler RemoteCodeExecutorService
mockgen -destination=internal/mocks/mock_balancer_service.go -package mocks github.com/codigician/remote-code-execution/internal/handler BalancerService
unit-test:
go test ./... -v -short
test:
go test ./... -v
code-coverage:
go test -race -coverprofile=coverage.out -covermode=atomic ./...
go tool cover -func=coverage.out | grep total | awk '{print $3}'
lint:
golangci-lint run
up:
chmod +x ./scripts/run_docker.sh
./scripts/run_docker.sh
protoc:
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative internal/grpc/rce.proto