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:
Ivan Kozlovic
2016-04-22 13:03:04 -06:00
parent 91b69f1f36
commit ad1198db85
5 changed files with 62 additions and 43 deletions

View File

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