mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Add code coverage
-Test coverage was no longer triggered due to the check for BUILD_GOOS environment variable that was removed. Removed the check. -Re-run test package with server code coverage. -Remove unused functions in test.go. -Add test for a function in test.go. -Add missing parse +OK test.
This commit is contained in:
@@ -8,6 +8,7 @@ go test -v -covermode=atomic -coverprofile=./cov/conf.out ./conf
|
||||
go test -v -covermode=atomic -coverprofile=./cov/log.out ./logger
|
||||
go test -v -covermode=atomic -coverprofile=./cov/server.out ./server
|
||||
go test -v -covermode=atomic -coverprofile=./cov/test.out ./test
|
||||
go test -v -covermode=atomic -coverprofile=./cov/test2.out -coverpkg=./server ./test
|
||||
gocovmerge ./cov/*.out > acc.out
|
||||
rm -rf ./cov
|
||||
|
||||
|
||||
Reference in New Issue
Block a user