Skip to content

Commit e3daf9d

Browse files
authored
go 1.23 version bump (#100)
1 parent af428bc commit e3daf9d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- name: golangci-lint
1515
uses: golangci/golangci-lint-action@v6
1616
with:
17-
version: v1.59.1
17+
version: v1.60.3
1818
- name: go mod tidy check
1919
uses: katexochen/go-tidy-check@v2

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ linters:
1010
- containedctx
1111
- contextcheck
1212
- cyclop
13+
- copyloopvar
1314
- decorder
1415
- dogsled
1516
- dupl
@@ -21,7 +22,6 @@ linters:
2122
- errname
2223
- errorlint
2324
- exhaustive
24-
- exportloopref
2525
- forbidigo
2626
- forcetypeassert
2727
- funlen

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# GO_VERSION: go version should match version in go.mod file
2-
FROM golang:1.22 as builder
2+
FROM golang:1.23 as builder
33
WORKDIR /workspace
44

55
COPY go.mod go.mod

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GO ?= go
22
GOBIN ?= $$($(GO) env GOPATH)/bin
33
GOLANGCI_LINT ?= $(GOBIN)/golangci-lint
4-
GOLANGCI_LINT_VERSION ?= v1.59.1
4+
GOLANGCI_LINT_VERSION ?= v1.60.3
55

66
# Code tidy
77
.PHONY: tidy

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module github.com/vladopajic/go-test-coverage/v2
22

33
// GO_VERSION: when changing go version update version in other places
4-
go 1.22
4+
go 1.23
55

66
require (
77
github.com/alexflint/go-arg v1.4.3

pkg/testcoverage/helpers_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ func randStats(localPrefix string, minc, maxc int) []coverage.Stats {
4747
}
4848
}
4949

50-
func makeCoverageGenFn(min, max int) func() (total, covered int64) {
50+
func makeCoverageGenFn(minc, maxc int) func() (total, covered int64) {
5151
return func() (int64, int64) {
52-
tc := rand.Intn(max-min+1) + min
52+
tc := rand.Intn(maxc-minc+1) + minc
5353
if tc == 0 {
5454
return 0, 0
5555
}
@@ -59,7 +59,7 @@ func makeCoverageGenFn(min, max int) func() (total, covered int64) {
5959
total := int64(float64(100*covered) / float64(tc))
6060

6161
cp := coverage.CoveredPercentage(total, covered)
62-
if cp >= min && cp <= max {
62+
if cp >= minc && cp <= maxc {
6363
return total, covered
6464
}
6565
}

0 commit comments

Comments
 (0)