initial attempt to integrate surf http client

This commit is contained in:
2026-01-24 14:59:48 -06:00
parent 2f1019d170
commit 538d52d064
45 changed files with 196 additions and 109 deletions
+4 -9
View File
@@ -12,11 +12,11 @@ define log
endef
.PHONY: all
all: lint fmt vet test test-coverage
all: fmt vet test test-coverage
.PHONY: usage
usage:
@echo "make [all|fmt|vet|lint|test|test-coverage]"
@echo "make [all|fmt|vet|test|test-coverage]"
.PHONY: fmt
fmt:
@@ -28,18 +28,13 @@ 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
test: fmt vet
@$(call log,"Running tests")
@go test -v -race -short -timeout $(TEST_TIMEOUT)s $(ARGS) $(LIST_PKG)
.PHONY: test-coverage
test-coverage: fmt vet lint
test-coverage: fmt vet
@$(call log,"Running tests with coverage")
@go test -v -race -short -timeout $(TEST_TIMEOUT)s $(ARGS) -coverprofile=coverage.out $(LIST_PKG)
@go tool cover -func=coverage.out