Skip to content

Commit

Permalink
chore: set codecov targets (#1947)
Browse files Browse the repository at this point in the history
* chore: set codecov targets

* update
  • Loading branch information
robert-zaremba authored Mar 23, 2023
1 parent b170df4 commit 89c3f4e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 10 additions & 14 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
coverage:
precision: 2
round: down
range: 70...100
range: 60...100

status:
# Learn more at https://docs.codecov.io/docs/commit-status
project:
default:
target: auto
threshold: 2% # # allow this much decrease on project
target: 65.5%
threshold: 2% # allow this much decrease on project
if_ci_failed: error
if_not_found: success
app:
target: 70%
paths:
- "app/"
if_not_found: success # if tests are not run
modules:
target: 70%
target: 62%
paths:
- "x/"
- "!x/**/client/" # ignore client package
client:
target: 70%
target: 96%
paths:
- client
- "x/**/client/"
Expand All @@ -32,19 +28,19 @@ comment:
require_changes: true

ignore:
# ignore all files of these types
# ignore all files of these types
- "**/*.proto"
- "**/*.yml"
- "**/*.json"
- "**/*.toml"
- "**/*.rst"
- "**/*.md"
# auto-generated files
# auto-generated files
- "**/*.pb.go"
- "**/*.pb.gw.go"
# ignore these folders and all their contents
# ignore these folders and all their contents
- "docs"
- "tests"
- "scripts"
- "contrib"
- "swagger"
- "swagger"
2 changes: 2 additions & 0 deletions util/bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func ConcatBytes(margin int, bzs ...[]byte) []byte {
return out
}

// UintWithNullPrefix efficiently serializes uint using LittleEndian and
// prepends zero byte (null prefix).
func UintWithNullPrefix(n uint64) []byte {
bz := make([]byte, 9)
binary.LittleEndian.PutUint64(bz[1:], n)
Expand Down

0 comments on commit 89c3f4e

Please sign in to comment.