Method renaming

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-05-05 19:26:02 -04:00
parent c7567ff110
commit f2197d794c
2 changed files with 43 additions and 36 deletions
+7
View File
@@ -11,27 +11,34 @@ define log
echo "\n\033[1;32m--- [$(@)] $(1) ---\033[0m\n"
endef
.PHONY: all
all: lint fmt vet test test-coverage build
.PHONY: usage
usage:
@echo "make [all|fmt|vet|lint|test|test-coverage]"
.PHONY: fmt
fmt:
@$(call log,"Running formatter")
@go fmt $(LIST_PKG)
.PHONY: vet
vet:
@$(call log,"Running vet")
@go vet -all $(LIST_PKG)
.PHONY: lint
lint:
@$(call log,"Running linter")
@golint -set_exit_status $(LIST_PKG)
.PHONY: test
test: fmt vet lint
@$(call log,"Running tests")
@go test -v -race -short -timeout $(TEST_TIMEOUT)s $(ARGS) $(LIST_PKG)
.PHONY: test-coverage
test-coverage: fmt vet lint
@$(call log,"Running tests with coverage")
@go test -v -race -short -timeout $(TEST_TIMEOUT)s $(ARGS) -coverprofile=coverage.out $(LIST_PKG)