File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 - macOS
1212 - Windows
1313 go-version :
14- - ' 1.23'
1514 - ' 1.24'
1615 - ' 1.25'
16+ - ' 1.26'
1717 architecture :
1818 - amd64
1919 - arm64
3939 timeout-minutes : 10
4040 steps :
4141 - name : Checkout code
42- uses : actions/checkout@v5
42+ uses : actions/checkout@v6
4343 with :
4444 persist-credentials : false
4545 - name : Setup Go
5252 - name : Vet
5353 run : go vet ./...
5454 - name : Upload coverage to Codecov
55- uses : codecov/codecov-action@v5
55+ uses : codecov/codecov-action@v6
5656 with :
5757 token : ${{ secrets.CODECOV_TOKEN }}
5858 env_vars : GO
Original file line number Diff line number Diff line change 1- Copyright (c) 2014-2025 Akinori Hattori <hattya@gmail.com>
1+ Copyright (c) 2014-2026 Akinori Hattori <hattya@gmail.com>
22
33Permission is hereby granted, free of charge, to any person obtaining a copy
44of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 11//
22// go.diff :: diff_test.go
33//
4- // Copyright (c) 2014-2025 Akinori Hattori <hattya@gmail.com>
4+ // Copyright (c) 2014-2026 Akinori Hattori <hattya@gmail.com>
55//
66// SPDX-License-Identifier: MIT
77//
@@ -181,7 +181,7 @@ func BenchmarkDiff(b *testing.B) {
181181 m := len (tt .b )
182182 data := & runes {tt .a , tt .b }
183183 b .ResetTimer ()
184- for range b . N {
184+ for b . Loop () {
185185 diff .Diff (n , m , data )
186186 }
187187}
@@ -191,7 +191,7 @@ func BenchmarkBytes(b *testing.B) {
191191 A := toByte (tt .a )
192192 B := toByte (tt .b )
193193 b .ResetTimer ()
194- for range b . N {
194+ for b . Loop () {
195195 diff .Bytes (A , B )
196196 }
197197}
@@ -201,7 +201,7 @@ func BenchmarkInts(b *testing.B) {
201201 A := toInt (tt .a )
202202 B := toInt (tt .b )
203203 b .ResetTimer ()
204- for range b . N {
204+ for b . Loop () {
205205 diff .Ints (A , B )
206206 }
207207}
@@ -211,7 +211,7 @@ func BenchmarkRunes(b *testing.B) {
211211 A := tt .a
212212 B := tt .b
213213 b .ResetTimer ()
214- for range b . N {
214+ for b . Loop () {
215215 diff .Runes (A , B )
216216 }
217217}
@@ -221,7 +221,7 @@ func BenchmarkStrings(b *testing.B) {
221221 A := toString (tt .a )
222222 B := toString (tt .b )
223223 b .ResetTimer ()
224- for range b . N {
224+ for b . Loop () {
225225 diff .Strings (A , B )
226226 }
227227}
Original file line number Diff line number Diff line change 11module github.com/hattya/go.diff
22
3- go 1.23 .0
3+ go 1.24 .0
You can’t perform that action at this time.
0 commit comments