Skip to content

Commit 7eb3a84

Browse files
committed
Update all dependencies
1 parent 5365c6e commit 7eb3a84

File tree

13 files changed

+48
-128
lines changed

13 files changed

+48
-128
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.7.11
1+
5.7.12

c/doc/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PROJECT_NAME = "VariantKey"
3232
# This could be handy for archiving the generated documentation or
3333
# if some version control system is used.
3434

35-
PROJECT_NUMBER = 5.7.11
35+
PROJECT_NUMBER = 5.7.12
3636

3737
# Using the PROJECT_BRIEF tag one can provide an optional one line description
3838
# for a project that appears at the top of each page and should give viewer

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/tecnickcom/variantkey
22

33
go 1.25.0
44

5-
toolchain go1.25.1
5+
toolchain go1.25.3
66

77
require (
88
github.com/jstemmer/go-junit-report/v2 v2.1.0

go/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ GOFMT=$(shell which gofmt)
5050
GOTEST=$(GO) test
5151
GODOC=GOPATH=$(GOPATH) $(shell which godoc)
5252
GOLANGCILINT=$(BINUTIL)/golangci-lint
53-
GOLANGCILINTVERSION=v2.5.0
53+
GOLANGCILINTVERSION=v2.6.1
5454

5555
# Directory containing the source code
5656
SRCDIR=./src

go/src/esid_test.go

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ func TestEncodeStringID(t *testing.T) {
144144
}
145145

146146
func BenchmarkEncodeStringID(b *testing.B) {
147-
b.ResetTimer()
148-
149-
for range b.N {
147+
for b.Loop() {
150148
EncodeStringID("ABC0123456", 0)
151149
}
152150
}
@@ -165,9 +163,7 @@ func TestEncodeStringNumID(t *testing.T) {
165163
}
166164

167165
func BenchmarkEncodeStringNumID(b *testing.B) {
168-
b.ResetTimer()
169-
170-
for range b.N {
166+
for b.Loop() {
171167
EncodeStringNumID("AbCDE:000012345", ':')
172168
}
173169
}
@@ -186,9 +182,7 @@ func TestDecodeStringID(t *testing.T) {
186182
}
187183

188184
func BenchmarkDecodeStringID(b *testing.B) {
189-
b.ResetTimer()
190-
191-
for range b.N {
185+
for b.Loop() {
192186
DecodeStringID(0x08628e49669e8a6a)
193187
}
194188
}
@@ -207,9 +201,7 @@ func TestDecodeStringNumID(t *testing.T) {
207201
}
208202

209203
func BenchmarkDecodeStringNumID(b *testing.B) {
210-
b.ResetTimer()
211-
212-
for range b.N {
204+
for b.Loop() {
213205
DecodeStringID(0xf8628e4978bc614e)
214206
}
215207
}
@@ -228,9 +220,7 @@ func TestHashStringID(t *testing.T) {
228220
}
229221

230222
func BenchmarkHashStringID(b *testing.B) {
231-
b.ResetTimer()
232-
233-
for range b.N {
223+
for b.Loop() {
234224
HashStringID("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")
235225
}
236226
}

go/src/genoref_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ func TestGetGenorefSeq(t *testing.T) {
3939
}
4040

4141
func BenchmarkGetGenorefSeq(b *testing.B) {
42-
b.ResetTimer()
43-
44-
for range b.N {
42+
for b.Loop() {
4543
gref.GetGenorefSeq(13, 1)
4644
}
4745
}

go/src/nrvk_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ func TestFindRefAltByVariantKey(t *testing.T) {
5252
}
5353

5454
func BenchmarkFindRefAltByVariantKey(b *testing.B) {
55-
b.ResetTimer()
56-
57-
for range b.N {
55+
for b.Loop() {
5856
nrvk.FindRefAltByVariantKey(0xb000c35b64690b25)
5957
}
6058
}
@@ -79,9 +77,7 @@ func TestNRReverseVariantKey(t *testing.T) {
7977
}
8078

8179
func BenchmarkNRReverseVariantKey(b *testing.B) {
82-
b.ResetTimer()
83-
84-
for range b.N {
80+
for b.Loop() {
8581
nrvk.ReverseVariantKey(0xb000c35b64690b25)
8682
}
8783
}

go/src/regionkey_test.go

Lines changed: 17 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ func TestEncodeRegionStrand(t *testing.T) {
7979
}
8080

8181
func BenchmarkEncodeRegionStrand(b *testing.B) {
82-
b.ResetTimer()
83-
84-
for range b.N {
82+
for b.Loop() {
8583
EncodeRegionStrand(-1)
8684
}
8785
}
@@ -100,9 +98,7 @@ func TestDecodeRegionStrand(t *testing.T) {
10098
}
10199

102100
func BenchmarkDecodeRegionStrand(b *testing.B) {
103-
b.ResetTimer()
104-
105-
for range b.N {
101+
for b.Loop() {
106102
DecodeRegionStrand(2)
107103
}
108104
}
@@ -121,9 +117,7 @@ func TestEncodeRegionKey(t *testing.T) {
121117
}
122118

123119
func BenchmarkEncodeRegionKey(b *testing.B) {
124-
b.ResetTimer()
125-
126-
for range b.N {
120+
for b.Loop() {
127121
EncodeRegionKey(25, 1000, 2000, 2)
128122
}
129123
}
@@ -142,9 +136,7 @@ func TestExtractRegionKeyChrom(t *testing.T) {
142136
}
143137

144138
func BenchmarkExtractRegionKeyChrom(b *testing.B) {
145-
b.ResetTimer()
146-
147-
for range b.N {
139+
for b.Loop() {
148140
ExtractRegionKeyChrom(0x080001f400002260)
149141
}
150142
}
@@ -163,9 +155,7 @@ func TestExtractRegionKeyStartPos(t *testing.T) {
163155
}
164156

165157
func BenchmarkExtractRegionKeyStartPos(b *testing.B) {
166-
b.ResetTimer()
167-
168-
for range b.N {
158+
for b.Loop() {
169159
ExtractRegionKeyStartPos(0x080001f400002260)
170160
}
171161
}
@@ -184,9 +174,7 @@ func TestExtractRegionKeyEndPos(t *testing.T) {
184174
}
185175

186176
func BenchmarkExtractRegionKeyEndPos(b *testing.B) {
187-
b.ResetTimer()
188-
189-
for range b.N {
177+
for b.Loop() {
190178
ExtractRegionKeyEndPos(0x080001f400002260)
191179
}
192180
}
@@ -205,9 +193,7 @@ func TestExtractRegionKeyStrand(t *testing.T) {
205193
}
206194

207195
func BenchmarkExtractRegionKeyStrand(b *testing.B) {
208-
b.ResetTimer()
209-
210-
for range b.N {
196+
for b.Loop() {
211197
ExtractRegionKeyStrand(0x080001f400002260)
212198
}
213199
}
@@ -229,9 +215,7 @@ func TestDecodeRegionKey(t *testing.T) {
229215
}
230216

231217
func BenchmarkDecodeRegionKey(b *testing.B) {
232-
b.ResetTimer()
233-
234-
for range b.N {
218+
for b.Loop() {
235219
DecodeRegionKey(0x080001f400002260)
236220
}
237221
}
@@ -253,9 +237,7 @@ func TestReverseRegionKey(t *testing.T) {
253237
}
254238

255239
func BenchmarkReverseRegionKey(b *testing.B) {
256-
b.ResetTimer()
257-
258-
for range b.N {
240+
for b.Loop() {
259241
ReverseRegionKey(0x080001f400002260)
260242
}
261243
}
@@ -274,9 +256,7 @@ func TestRegionKey(t *testing.T) {
274256
}
275257

276258
func BenchmarkRegionKey(b *testing.B) {
277-
b.ResetTimer()
278-
279-
for range b.N {
259+
for b.Loop() {
280260
RegionKey("MT", 1000, 2000, -1)
281261
}
282262
}
@@ -314,9 +294,7 @@ func TestGetRegionKeyChromStartPos(t *testing.T) {
314294
}
315295

316296
func BenchmarkGetRegionKeyChromStartPos(b *testing.B) {
317-
b.ResetTimer()
318-
319-
for range b.N {
297+
for b.Loop() {
320298
GetRegionKeyChromStartPos(0x080001f400002260)
321299
}
322300
}
@@ -335,9 +313,7 @@ func TestGetRegionKeyChromEndPos(t *testing.T) {
335313
}
336314

337315
func BenchmarkGetRegionKeyChromEndPos(b *testing.B) {
338-
b.ResetTimer()
339-
340-
for range b.N {
316+
for b.Loop() {
341317
GetRegionKeyChromEndPos(0x080001f400002260)
342318
}
343319
}
@@ -356,9 +332,7 @@ func TestAreOverlappingRegions(t *testing.T) {
356332
}
357333

358334
func BenchmarkAreOverlappingRegions(b *testing.B) {
359-
b.ResetTimer()
360-
361-
for range b.N {
335+
for b.Loop() {
362336
AreOverlappingRegions(5, 4, 6, 5, 3, 7)
363337
}
364338
}
@@ -377,9 +351,7 @@ func TestAreOverlappingRegionRegionKey(t *testing.T) {
377351
}
378352

379353
func BenchmarkAreOverlappingRegionRegionKey(b *testing.B) {
380-
b.ResetTimer()
381-
382-
for range b.N {
354+
for b.Loop() {
383355
AreOverlappingRegionRegionKey(5, 4, 6, 0x2800000180000038)
384356
}
385357
}
@@ -398,9 +370,7 @@ func TestAreOverlappingRegionKeys(t *testing.T) {
398370
}
399371

400372
func BenchmarkAreOverlappingRegionKeys(b *testing.B) {
401-
b.ResetTimer()
402-
403-
for range b.N {
373+
for b.Loop() {
404374
AreOverlappingRegionKeys(0x2800000200000030, 0x2800000180000038)
405375
}
406376
}
@@ -419,9 +389,7 @@ func TestAreOverlappingVariantKeyRegionKey(t *testing.T) {
419389
}
420390

421391
func BenchmarkAreOverlappingVariantKeyRegionKey(b *testing.B) {
422-
b.ResetTimer()
423-
424-
for range b.N {
392+
for b.Loop() {
425393
nrvk.AreOverlappingVariantKeyRegionKey(0x2800000210920000, 0x2800000180000038)
426394
}
427395
}
@@ -440,9 +408,7 @@ func TestVariantToRegionkey(t *testing.T) {
440408
}
441409

442410
func BenchmarkVariantToRegionkey(b *testing.B) {
443-
b.ResetTimer()
444-
445-
for range b.N {
411+
for b.Loop() {
446412
nrvk.VariantToRegionkey(0x2800000210920000)
447413
}
448414
}

go/src/rsidvar_test.go

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ func TestFindRVVariantKeyByRsidNotFound(t *testing.T) {
5252
}
5353

5454
func BenchmarkFindRVVariantKeyByRsid(b *testing.B) {
55-
b.ResetTimer()
56-
57-
for range b.N {
55+
for b.Loop() {
5856
rv.FindRVVariantKeyByRsid(0, 9, 0x2F81F575)
5957
}
6058
}
@@ -114,9 +112,7 @@ func TestFindVRRsidByVariantKeyNotFound(t *testing.T) {
114112
}
115113

116114
func BenchmarkFindVRRsidByVariantKey(b *testing.B) {
117-
b.ResetTimer()
118-
119-
for range b.N {
115+
for b.Loop() {
120116
vr.FindVRRsidByVariantKey(0, vr.NRows, 0x160017CCA313D0E0)
121117
}
122118
}
@@ -166,9 +162,7 @@ func TestFindVRChromPosRangeNotFound(t *testing.T) {
166162
}
167163

168164
func BenchmarkFindVRChromPosRange(b *testing.B) {
169-
b.ResetTimer()
170-
171-
for range b.N {
165+
for b.Loop() {
172166
vr.FindVRChromPosRange(0, vr.NRows, 0x19, 0x001AF8FD, 0x001C8F2A)
173167
}
174168
}

0 commit comments

Comments
 (0)