Skip to content

Commit 6ea5ea1

Browse files
committed
chore: adding coverage
1 parent f061082 commit 6ea5ea1

File tree

3 files changed

+2421
-3
lines changed

3 files changed

+2421
-3
lines changed

.github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ "main" ]
88

99
jobs:
10-
build:
10+
Tests:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3

.testcoverage.yml

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
1-
threshold: "80"
2-
fail_below_threshold: false
1+
# (mandatory)
2+
# Path to coverage profile file (output of `go test -coverprofile` command).
3+
#
4+
# For cases where there are many coverage profiles, such as when running
5+
# unit tests and integration tests separately, you can combine all those
6+
# profiles into one. In this case, the profile should have a comma-separated list
7+
# of profile files, e.g., 'cover_unit.out,cover_integration.out'.
8+
profile: cover.out
9+
10+
# (optional; but recommended to set)
11+
# When specified reported file paths will not contain local prefix in the output.
12+
13+
# Holds coverage thresholds percentages, values should be in range [0-100].
14+
threshold:
15+
# (optional; default 0)
16+
# Minimum coverage percentage required for individual files.
17+
file: 70
18+
19+
# (optional; default 0)
20+
# Minimum coverage percentage required for each package.
21+
package: 80
22+
23+
# (optional; default 0)
24+
# Minimum overall project coverage percentage required.
25+
total: 95

0 commit comments

Comments
 (0)