Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b0ee7d

Browse files
PedroRosalbaguiferpa
authored andcommitted
fix: lint
1 parent c0e9e2f commit 3b0ee7d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

lexer/scanner_bench_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,43 +82,43 @@ func BenchmarkScanToken_Comment(b *testing.B) {
8282

8383
func BenchmarkGetTokens_Simple(b *testing.B) {
8484
for i := 0; i < b.N; i++ {
85-
GetTokens(simpleInput)
85+
_, _ = GetTokens(simpleInput)
8686
}
8787
}
8888

8989
func BenchmarkGetTokens_Medium(b *testing.B) {
9090
for i := 0; i < b.N; i++ {
91-
GetTokens(mediumInput)
91+
_, _ = GetTokens(mediumInput)
9292
}
9393
}
9494

9595
func BenchmarkGetTokens_Complex(b *testing.B) {
9696
for i := 0; i < b.N; i++ {
97-
GetTokens(complexInput)
97+
_, _ = GetTokens(complexInput)
9898
}
9999
}
100100

101101
func BenchmarkGetTokens_Hex(b *testing.B) {
102102
for i := 0; i < b.N; i++ {
103-
GetTokens(hexInput)
103+
_, _ = GetTokens(hexInput)
104104
}
105105
}
106106

107107
func BenchmarkGetTokens_Strings(b *testing.B) {
108108
for i := 0; i < b.N; i++ {
109-
GetTokens(stringInput)
109+
_, _ = GetTokens(stringInput)
110110
}
111111
}
112112

113113
func BenchmarkGetTokens_ManyTokens(b *testing.B) {
114114
for i := 0; i < b.N; i++ {
115-
GetTokens(manyTokensInput)
115+
_, _ = GetTokens(manyTokensInput)
116116
}
117117
}
118118

119119
func BenchmarkGetFilledTokens_Complex(b *testing.B) {
120120
for i := 0; i < b.N; i++ {
121-
GetFilledTokens(complexInput)
121+
_, _ = GetFilledTokens(complexInput)
122122
}
123123
}
124124
func BenchmarkIsIdentChar(b *testing.B) {

0 commit comments

Comments
 (0)