From 383286f4cf07277661c9e5444e5b6011c2de0b31 Mon Sep 17 00:00:00 2001 From: yuli Date: Sun, 18 Aug 2024 22:40:23 +0300 Subject: [PATCH] code coverage test --- go-code-coverage.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 go-code-coverage.sh diff --git a/go-code-coverage.sh b/go-code-coverage.sh new file mode 100755 index 00000000..76b483b1 --- /dev/null +++ b/go-code-coverage.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +cd src +go test -coverprofile=/tmp/coverage.out +echo +echo "Test summary" +go tool cover -func=/tmp/coverage.out +echo +go tool cover -html=/tmp/coverage.out