From 9fd0caad544cb33a1b1b0839fa5e17889f5a109d Mon Sep 17 00:00:00 2001 From: yxxhero <11087727+yxxhero@users.noreply.github.com> Date: Sat, 10 Jun 2023 20:10:22 +0800 Subject: [PATCH] add unittest cover (#471) * add unittest cover Signed-off-by: yxxhero * remove -p=1 for cover Signed-off-by: yxxhero --------- Signed-off-by: yxxhero --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2c082cea..bf4cf3cf 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,8 @@ build: lint .PHONY: test test: - go test -v ./... + go test -v ./... -coverprofile cover.out -race + go tool cover -func cover.out .PHONY: bootstrap bootstrap: