Skip to content

Commit

Permalink
Coverage (#192)
Browse files Browse the repository at this point in the history
Hard code coverage badge.
  • Loading branch information
ohler55 authored Dec 27, 2024
1 parent 7994661 commit 08c8664
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ cover: lint
$Q grep github gen/cov.out >> cov.out
$Q grep github asm/cov.out >> cov.out
$Q go tool cover -func=cov.out | grep "total:"
$(eval COVERAGE = $(shell go tool cover -func=cov.out | grep "total:" | grep -Eo "[0-9]+\.[0-9]+"))
echo "coverage:" $(COVERAGE)

test: cover

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# [![{}j](assets/ojg_comet.svg)](https://github.com/ohler55/ojg)

[![Build Status](https://github.com/ohler55/ojg/actions/workflows/CI.yml/badge.svg)](https://github.com/ohler55/ojg/actions)
![99%](assets/coverage-badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/ohler55/ojg)](https://goreportcard.com/report/github.com/ohler55/ojg)

Optimized JSON for Go is a high performance parser with a variety of
Expand Down
7 changes: 7 additions & 0 deletions assets/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions notes
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

- coverage
- badge
- option for fast vs accurate parse
- doc should indicate 16th place variation and diff in performance for float parse

- parse
- add discover option to find JSON or SEN in a string or file
Expand Down

0 comments on commit 08c8664

Please sign in to comment.