More unit tests and html coverage report

also fixes a limit bug on listquery
This commit is contained in:
Jamie Curnow
2023-07-27 12:38:35 +10:00
parent e4e70ae6be
commit 9faa36315f
19 changed files with 479 additions and 183 deletions

View File

@ -1,3 +1,7 @@
#!/bin/bash -e
go test -json -cover ./internal/... | tparse
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
go test -json -cover -coverprofile="$DIR/../coverage.out" ./internal/... | tparse
go tool cover -html="$DIR/../coverage.out" -o "$DIR/../coverage.html"
rm -f "$DIR/../coverage.out"