mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-10-28 16:42:30 +00:00
code coverage test
This commit is contained in:
9
go-code-coverage.sh
Executable file
9
go-code-coverage.sh
Executable 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
|
||||
Reference in New Issue
Block a user