Skip to content

Commit aee33e6

Browse files
committed
Update dependencies
1 parent 36f38f5 commit aee33e6

File tree

9 files changed

+66
-67
lines changed

9 files changed

+66
-67
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.4.22
1+
9.4.23

c/doc/Doxyfile

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

35-
PROJECT_NUMBER = 9.4.22
35+
PROJECT_NUMBER = 9.4.23
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/.golangci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ run:
55
issues-exit-code: 1
66
tests: true
77
timeout: 5m
8-
skip-dirs-use-default: true
98

109
output:
1110
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
@@ -44,6 +43,7 @@ linters-settings:
4443
- github.com/stretchr
4544

4645
issues:
46+
exclude-dirs-use-default: true
4747
exclude-dirs:
4848
- .github
4949
- .githook
@@ -57,14 +57,14 @@ issues:
5757
linters:
5858
enable-all: true
5959
disable:
60-
- depguard # Go linter that checks if package imports are in a list of acceptable packages [fast: true, auto-fix: false]
61-
- exhaustruct # Checks if all structure fields are initialized [fast: false, auto-fix: false]
62-
- err113 # Go linter to check the errors handling expressions [fast: false, auto-fix: false]
63-
- ireturn # Accept Interfaces, Return Concrete Types [fast: false, auto-fix: false]
64-
- lll # Reports long lines [fast: true, auto-fix: false]
65-
- musttag # enforce field tags in (un)marshaled structs [fast: false, auto-fix: false]
66-
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity [fast: true, auto-fix: false]
67-
- tagliatelle # Checks the struct tags. [fast: true, auto-fix: false]
68-
- testpackage # linter that makes you use a separate _test package [fast: true, auto-fix: false]
69-
- varnamelen # checks that the length of a variable's name matches its scope [fast: false, auto-fix: false]
60+
- depguard # Go linter that checks if package imports are in a list of acceptable packages [fast: true, auto-fix: false]
61+
- exhaustruct # Checks if all structure fields are initialized [fast: false, auto-fix: false]
62+
- err113 # Go linter to check the errors handling expressions [fast: false, auto-fix: false]
63+
- ireturn # Accept Interfaces, Return Concrete Types [fast: false, auto-fix: false]
64+
- lll # Reports long lines [fast: true, auto-fix: false]
65+
- musttag # enforce field tags in (un)marshaled structs [fast: false, auto-fix: false]
66+
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity [fast: true, auto-fix: false]
67+
- tagliatelle # Checks the struct tags. [fast: true, auto-fix: false]
68+
- testpackage # linter that makes you use a separate _test package [fast: true, auto-fix: false]
69+
- varnamelen # checks that the length of a variable's name matches its scope [fast: false, auto-fix: false]
7070
- exportloopref # deprecated

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=GOPATH=$(GOPATH) $(shell which gotest)
5151
GODOC=GOPATH=$(GOPATH) $(shell which godoc)
5252
GOLANGCILINT=$(BINUTIL)/golangci-lint
53-
GOLANGCILINTVERSION=v1.62.2
53+
GOLANGCILINTVERSION=v1.63.4
5454

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

go/src/binsearch.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
// maxcols is the maximum number of indexable columns as in binsearch.h file.
1717
const maxcols = 256
1818

19-
// TMMFile contains the memory mapped file info
19+
// TMMFile contains the memory mapped file info.
2020
type TMMFile struct {
2121
Src unsafe.Pointer // Pointer to the memory map.
2222
Fd int // File descriptor.
@@ -74,8 +74,8 @@ func castGoTMMFileToC(mf TMMFile) C.mmfile_t {
7474
return cmf
7575
}
7676

77-
// StringToNTBytes safely convert a string to byte array with an extra null terminator
78-
// This is to ensure a correct CGO conversion to char*
77+
// StringToNTBytes safely convert a string to byte array with an extra null terminator.
78+
// This is to ensure a correct CGO conversion to char*.
7979
func StringToNTBytes(s string) []byte {
8080
b := make([]byte, len(s)+1)
8181
copy(b, s)

go/src/binsearch_col_test.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func TestColFindFirstUint8(t *testing.T) {
462462
func BenchmarkColFindFirstUint8(b *testing.B) {
463463
b.ResetTimer()
464464

465-
for i := 0; i < b.N; i++ {
465+
for range b.N {
466466
cmf.ColFindFirstUint8(cmf.Index[0], testDataCol8[4].first, testDataCol8[4].last, testDataCol8[4].search)
467467
}
468468
}
@@ -510,7 +510,7 @@ func TestColFindFirstSubUint8(t *testing.T) {
510510
func BenchmarkColFindFirstSubUint8(b *testing.B) {
511511
b.ResetTimer()
512512

513-
for i := 0; i < b.N; i++ {
513+
for range b.N {
514514
cmf.ColFindFirstSubUint8(cmf.Index[0], 0, 7, testDataColSub8[4].first, testDataColSub8[4].last, testDataColSub8[4].search)
515515
}
516516
}
@@ -558,7 +558,7 @@ func TestColFindLastUint8(t *testing.T) {
558558
func BenchmarkColFindLastUint8(b *testing.B) {
559559
b.ResetTimer()
560560

561-
for i := 0; i < b.N; i++ {
561+
for range b.N {
562562
cmf.ColFindLastUint8(cmf.Index[0], testDataCol8[4].first, testDataCol8[4].last, testDataCol8[4].search)
563563
}
564564
}
@@ -606,7 +606,7 @@ func TestColFindLastSubUint8(t *testing.T) {
606606
func BenchmarkColFindLastSubUint8(b *testing.B) {
607607
b.ResetTimer()
608608

609-
for i := 0; i < b.N; i++ {
609+
for range b.N {
610610
cmf.ColFindLastSubUint8(cmf.Index[0], 0, 7, testDataColSub8[4].first, testDataColSub8[4].last, testDataColSub8[4].search)
611611
}
612612
}
@@ -654,7 +654,7 @@ func TestColFindFirstUint16(t *testing.T) {
654654
func BenchmarkColFindFirstUint16(b *testing.B) {
655655
b.ResetTimer()
656656

657-
for i := 0; i < b.N; i++ {
657+
for range b.N {
658658
cmf.ColFindFirstUint16(cmf.Index[1], testDataCol16[4].first, testDataCol16[4].last, testDataCol16[4].search)
659659
}
660660
}
@@ -702,7 +702,7 @@ func TestColFindFirstSubUint16(t *testing.T) {
702702
func BenchmarkColFindFirstSubUint16(b *testing.B) {
703703
b.ResetTimer()
704704

705-
for i := 0; i < b.N; i++ {
705+
for range b.N {
706706
cmf.ColFindFirstSubUint16(cmf.Index[1], 0, 15, testDataColSub16[4].first, testDataColSub16[4].last, testDataColSub16[4].search)
707707
}
708708
}
@@ -750,7 +750,7 @@ func TestColFindLastUint16(t *testing.T) {
750750
func BenchmarkColFindLastUint16(b *testing.B) {
751751
b.ResetTimer()
752752

753-
for i := 0; i < b.N; i++ {
753+
for range b.N {
754754
cmf.ColFindLastUint16(cmf.Index[1], testDataCol16[4].first, testDataCol16[4].last, testDataCol16[4].search)
755755
}
756756
}
@@ -798,7 +798,7 @@ func TestColFindLastSubUint16(t *testing.T) {
798798
func BenchmarkColFindLastSubUint16(b *testing.B) {
799799
b.ResetTimer()
800800

801-
for i := 0; i < b.N; i++ {
801+
for range b.N {
802802
cmf.ColFindLastSubUint16(cmf.Index[1], 0, 15, testDataColSub16[4].first, testDataColSub16[4].last, testDataColSub16[4].search)
803803
}
804804
}
@@ -846,7 +846,7 @@ func TestColFindFirstUint32(t *testing.T) {
846846
func BenchmarkColFindFirstUint32(b *testing.B) {
847847
b.ResetTimer()
848848

849-
for i := 0; i < b.N; i++ {
849+
for range b.N {
850850
cmf.ColFindFirstUint32(cmf.Index[2], testDataCol32[4].first, testDataCol32[4].last, testDataCol32[4].search)
851851
}
852852
}
@@ -894,7 +894,7 @@ func TestColFindFirstSubUint32(t *testing.T) {
894894
func BenchmarkColFindFirstSubUint32(b *testing.B) {
895895
b.ResetTimer()
896896

897-
for i := 0; i < b.N; i++ {
897+
for range b.N {
898898
cmf.ColFindFirstSubUint32(cmf.Index[2], 8, 23, testDataColSub32[4].first, testDataColSub32[4].last, testDataColSub32[4].search)
899899
}
900900
}
@@ -942,7 +942,7 @@ func TestColFindLastUint32(t *testing.T) {
942942
func BenchmarkColFindLastUint32(b *testing.B) {
943943
b.ResetTimer()
944944

945-
for i := 0; i < b.N; i++ {
945+
for range b.N {
946946
cmf.ColFindLastUint32(cmf.Index[2], testDataCol32[4].first, testDataCol32[4].last, testDataCol32[4].search)
947947
}
948948
}
@@ -990,7 +990,7 @@ func TestColFindLastSubUint32(t *testing.T) {
990990
func BenchmarkColFindLastSubUint32(b *testing.B) {
991991
b.ResetTimer()
992992

993-
for i := 0; i < b.N; i++ {
993+
for range b.N {
994994
cmf.ColFindLastSubUint32(cmf.Index[2], 8, 23, testDataColSub32[4].first, testDataColSub32[4].last, testDataColSub32[4].search)
995995
}
996996
}
@@ -1038,7 +1038,7 @@ func TestColFindFirstUint64(t *testing.T) {
10381038
func BenchmarkColFindFirstUint64(b *testing.B) {
10391039
b.ResetTimer()
10401040

1041-
for i := 0; i < b.N; i++ {
1041+
for range b.N {
10421042
cmf.ColFindFirstUint64(cmf.Index[3], testDataCol64[4].first, testDataCol64[4].last, testDataCol64[4].search)
10431043
}
10441044
}
@@ -1086,7 +1086,7 @@ func TestColFindFirstSubUint64(t *testing.T) {
10861086
func BenchmarkColFindFirstSubUint64(b *testing.B) {
10871087
b.ResetTimer()
10881088

1089-
for i := 0; i < b.N; i++ {
1089+
for range b.N {
10901090
cmf.ColFindFirstSubUint64(cmf.Index[3], 16, 47, testDataColSub64[4].first, testDataColSub64[4].last, testDataColSub64[4].search)
10911091
}
10921092
}
@@ -1134,7 +1134,7 @@ func TestColFindLastUint64(t *testing.T) {
11341134
func BenchmarkColFindLastUint64(b *testing.B) {
11351135
b.ResetTimer()
11361136

1137-
for i := 0; i < b.N; i++ {
1137+
for range b.N {
11381138
cmf.ColFindLastUint64(cmf.Index[3], testDataCol64[4].first, testDataCol64[4].last, testDataCol64[4].search)
11391139
}
11401140
}
@@ -1182,7 +1182,7 @@ func TestColFindLastSubUint64(t *testing.T) {
11821182
func BenchmarkColFindLastSubUint64(b *testing.B) {
11831183
b.ResetTimer()
11841184

1185-
for i := 0; i < b.N; i++ {
1185+
for range b.N {
11861186
cmf.ColFindLastSubUint64(cmf.Index[3], 16, 47, testDataColSub64[4].first, testDataColSub64[4].last, testDataColSub64[4].search)
11871187
}
11881188
}

0 commit comments

Comments
 (0)