go test -covermode=count -v -cover ./... -coverprofile=cover.out &&
go tool cover -func=cover.out | grep total | awk '{print substr($3, 1, length($3)-3)}' | {
read -r message; EXPECTED_COV=80;
if [ "$message" -lt $EXPECTED_COV ];
then echo "FAILED, as Coverage is $message lesser then $EXPECTED_COV";
else echo "PASSED, as Coverage is $message greater then $EXPECTED_COV";
fi
}
-
Notifications
You must be signed in to change notification settings - Fork 0
siddharthrajaraja/design-patterns
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published