File tree 7 files changed +30
-31
lines changed
7 files changed +30
-31
lines changed Original file line number Diff line number Diff line change 2
2
3
3
on :
4
4
push :
5
- # branches: [ develop, master ]
5
+ branches : [ develop, master ]
6
6
pull_request :
7
7
branches : [ develop ]
8
8
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ cover: lint
24
24
$Q grep github asm/cov.out >> cov.out
25
25
$Q go tool cover -func=cov.out | grep " total:"
26
26
$(eval COVERAGE = $(shell go tool cover -func=cov.out | grep "total:" | grep -Eo "[0-9]+\.[0-9]+") )
27
- echo " coverage: " $(COVERAGE )
27
+ sh ./gen- coverage-badge.sh $(COVERAGE )
28
28
29
29
test : cover
30
30
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Build Status] ( https://github.com/ohler55/ojg/actions/workflows/CI.yml/badge.svg )] ( https://github.com/ohler55/ojg/actions )
4
4
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/ohler55/ojg )] ( https://goreportcard.com/report/github.com/ohler55/ojg )
5
- ![ 99% ] ( assets/coverage-badge.svg )
5
+ ![ ] ( assets/coverage-badge.svg )
6
6
7
7
Optimized JSON for Go is a high performance parser with a variety of
8
8
additional JSON tools. OjG is optimized to processing huge data sets
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ COV=` echo " $1 " | sed ' s/[.].*//' `
4
+
5
+ if [ " $COV " -lt " 50" ]; then
6
+ COLOR=" #c00000"
7
+ elif [ " $COV " -lt " 80" ]; then
8
+ COLOR=" #c08000"
9
+ else
10
+ COLOR=" #00c000"
11
+ fi
12
+
13
+ sed -e " s/999/$1 /" -e " s/#888888/$COLOR /" assets/coverage-badge-template.svg > assets/coverage-badge.svg
Original file line number Diff line number Diff line change 1
1
2
2
- coverage
3
- - badge
4
3
- option for fast vs accurate parse
5
4
- doc should indicate 16th place variation and diff in performance for float parse
6
5
6
+
7
7
- parse
8
8
- add discover option to find JSON or SEN in a string or file
9
9
- 3 states
You can’t perform that action at this time.
0 commit comments