Skip to content

Commit bd37c37

Browse files
committed
remove override coverage
1 parent 444242d commit bd37c37

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/.testcoverage.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ profile: cover.short.profile,cover.long.profile
44
local-prefix: "github.com/vladopajic/go-test-coverage/v2"
55
threshold:
66
file: 100
7-
total: 95
8-
override:
9-
- threshold: 50
10-
path: badgestorer/github.go$
7+
total: 100
118
exclude:
129
paths:
1310
- main\.go$

pkg/testcoverage/badgestorer/github.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ func (s *githubStorer) Store(data []byte) (bool, error) {
6565
return updateBadge(nil)
6666
}
6767

68-
if err != nil {
68+
if err != nil { //coverage-ignore
6969
return false, fmt.Errorf("get badge content: %w", err)
7070
}
7171

7272
content, err := fc.GetContent()
73-
if err != nil {
73+
if err != nil { //coverage-ignore
7474
return false, fmt.Errorf("decode badge content: %w", err)
7575
}
7676

0 commit comments

Comments
 (0)