@@ -20,7 +20,7 @@ const (
20
20
// default value of string variables passed by CI
21
21
ciDefaultString = `''`
22
22
// default value of int variables passed by CI
23
- ciDefaultnt = - 1
23
+ ciDefaultInt = - 1
24
24
)
25
25
26
26
type args struct {
@@ -53,9 +53,9 @@ func newArgs() args {
53
53
Profile : ciDefaultString ,
54
54
LocalPrefix : ciDefaultString ,
55
55
GithubActionOutput : false ,
56
- ThresholdFile : ciDefaultnt ,
57
- ThresholdPackage : ciDefaultnt ,
58
- ThresholdTotal : ciDefaultnt ,
56
+ ThresholdFile : ciDefaultInt ,
57
+ ThresholdPackage : ciDefaultInt ,
58
+ ThresholdTotal : ciDefaultInt ,
59
59
60
60
// Badge
61
61
BadgeFileName : ciDefaultString ,
@@ -95,15 +95,15 @@ func (a *args) overrideConfig(cfg testcoverage.Config) (testcoverage.Config, err
95
95
cfg .LocalPrefix = a .LocalPrefix
96
96
}
97
97
98
- if ! isCIDefaultnt (a .ThresholdFile ) {
98
+ if ! isCIDefaultInt (a .ThresholdFile ) {
99
99
cfg .Threshold .File = a .ThresholdFile
100
100
}
101
101
102
- if ! isCIDefaultnt (a .ThresholdPackage ) {
102
+ if ! isCIDefaultInt (a .ThresholdPackage ) {
103
103
cfg .Threshold .Package = a .ThresholdPackage
104
104
}
105
105
106
- if ! isCIDefaultnt (a .ThresholdPackage ) {
106
+ if ! isCIDefaultInt (a .ThresholdPackage ) {
107
107
cfg .Threshold .Total = a .ThresholdTotal
108
108
}
109
109
@@ -185,7 +185,7 @@ func readConfig() (testcoverage.Config, error) {
185
185
186
186
func isCIDefaultString (v string ) bool { return v == ciDefaultString }
187
187
188
- func isCIDefaultnt (v int ) bool { return v == ciDefaultnt }
188
+ func isCIDefaultInt (v int ) bool { return v == ciDefaultInt }
189
189
190
190
func escapeCiDefaultString (v string ) string {
191
191
if v == ciDefaultString {
0 commit comments