Skip to content

Commit 8bbeccc

Browse files
committed
fix: sonar issues
1 parent 828385a commit 8bbeccc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lock_free_queue_benchmark_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ func BenchmarkNewLockFreeQ(b *testing.B) {
2424
}
2525
}
2626

27-
// BenchmarkLockFreeQ_Enqueue benchmarks adding items to the queue.
28-
func BenchmarkLockFreeQ_Enqueue(b *testing.B) {
27+
// BenchmarkLockFreeQEnqueue benchmarks adding items to the queue.
28+
func BenchmarkLockFreeQEnqueue(b *testing.B) {
2929
q := NewLockFreeQ[int]()
3030
for i := 0; i < b.N; i++ {
3131
q.Enqueue(i)
3232
}
3333
}
3434

35-
// BenchmarkLockFreeQ_Dequeue benchmarks removing items from the queue.
36-
func BenchmarkLockFreeQ_Dequeue(b *testing.B) {
35+
// BenchmarkLockFreeQDequeue benchmarks removing items from the queue.
36+
func BenchmarkLockFreeQDequeue(b *testing.B) {
3737
q := NewLockFreeQ[int]()
3838
for i := 0; i < b.N; i++ {
3939
q.Enqueue(i)
@@ -46,8 +46,8 @@ func BenchmarkLockFreeQ_Dequeue(b *testing.B) {
4646
}
4747
}
4848

49-
// BenchmarkLockFreeQ_IsEmpty benchmarks the IsEmpty check.
50-
func BenchmarkLockFreeQ_IsEmpty(b *testing.B) {
49+
// BenchmarkLockFreeQIsEmpty benchmarks the IsEmpty check.
50+
func BenchmarkLockFreeQIsEmpty(b *testing.B) {
5151
q := NewLockFreeQ[int]()
5252
for i := 0; i < b.N; i++ {
5353
_ = q.IsEmpty()

0 commit comments

Comments
 (0)