From e6a9c1db87685b6f81a269b087a144c02f7bdc13 Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Tue, 29 Aug 2017 22:44:32 -0700 Subject: [PATCH] add coverage reports Fixes #11 --- Makefile | 7 ++++--- README.md | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 937a892..d3f6ed2 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,8 @@ errcheck: @errcheck -ignorepkg=bytes -ignore=os:Remove github.com/coreos/bbolt test: - @go test -v -cover . - @go test -v ./cmd/bolt + go test -timeout 20m -v -coverprofile cover.out -covermode atomic + # Note: gets "program not an importable package" in out of path builds + go test -v ./cmd/bolt -.PHONY: fmt test +.PHONY: race fmt errcheck test diff --git a/README.md b/README.md index ba31d46..6be2eaa 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ Bolt ==== -[![Go Report Card](https://goreportcard.com/badge/github.com/coreos/bbolt?style=flat-square)](https://goreportcard.com/report/github.com/coreos/bbolt) [![Godoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/coreos/bbolt) +[![Go Report Card](https://goreportcard.com/badge/github.com/coreos/bbolt?style=flat-square)](https://goreportcard.com/report/github.com/coreos/bbolt) +[![Coverage](https://codecov.io/gh/coreos/bbolt/branch/master/graph/badge.svg)](https://codecov.io/gh/coreos/bbolt) +[![Godoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/coreos/bbolt) Bolt is a pure Go key/value store inspired by [Howard Chu's][hyc_symas] [LMDB project][lmdb]. The goal of the project is to provide a simple,