代码拉取完成,页面将自动刷新
# This Makefile is adopted from https://github.com/hashicorp/consul/blob/master/Makefile
DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
PACKAGES = $(shell go list ./...)
VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods \
-nilfunc -rangeloops -shift -structtags -unsafeptr
#-printf
all: deps format
cov:
gocov test | gocov-html > /tmp/coverage.html
open /tmp/coverage.html
deps:
go get -d -v ./... $(DEPS)
updatedeps: deps
go get -d -f -u ./... $(DEPS)
build: test
cd cmd/gryffin-standalone; go install
test: deps
go test ./...
@$(MAKE) vet
test-mono:
go run cmd/gryffin-standalone/main.go "http://127.0.0.1:8081"
go run cmd/gryffin-standalone/main.go "http://127.0.0.1:8082/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit"
test-integration:
INTEGRATION=1 go test ./...
test-cover: deps
go test --cover ./...
format: deps
@go fmt $(PACKAGES)
vet:
@go tool vet 2>/dev/null ; if [ $$? -eq 3 ]; then \
go get golang.org/x/tools/cmd/vet; \
fi
@go tool vet $(VETARGS) . ; if [ $$? -eq 1 ]; then \
echo ""; \
echo "Vet found suspicious constructs. Please check the reported constructs"; \
echo "and fix them if necessary before submitting the code for reviewal."; \
fi
.PHONY: all cov deps build test vet web web-push
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。