code coverage test

This commit is contained in:
yuli
2024-08-18 22:40:23 +03:00
parent f9667a76eb
commit 383286f4cf

9
go-code-coverage.sh Executable file
View File

@@ -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