From fb3fd8cd83af9fa5adaa5673013569e3a2ac1655 Mon Sep 17 00:00:00 2001 From: djshow832 <873581766@qq.com> Date: Sat, 8 Oct 2022 14:02:26 +0800 Subject: [PATCH] add coverage --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 791eb869..83b954d2 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,8 @@ test: gocovmerge go test -coverprofile=.cover.pkg ./... cd lib && go test -coverprofile=../.cover.lib ./... $(GOBIN)/gocovmerge .cover.* > .cover + go tool cover -func=.cover -o .cover.func + tail -1 .cover.func rm -f .cover.* go tool cover -html=.cover -o .cover.html