Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/ConcurrentCollectionsTests/src/test_bench_smoke.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module TestBenchSmoke
using Test
using ConcurrentCollectionsBenchmarks: clear, setup_smoke

function var"test_smoke test benchmarks"()
function test_smoke_test_benchmarks()
try
local suite
@test (suite = setup_smoke()) isa Any
Expand Down
2 changes: 1 addition & 1 deletion test/ConcurrentCollectionsTests/src/test_crq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using ConcurrentCollections.Implementations:
using ProgressLogging: @logprogress, @withprogress
using Test

function var"test_CRQSlot"()
function test_CRQSlot()
for index in [111, 222],
safe in [false, true],
storage in UInt32[0xaaa, 0xbbb]
Expand Down
2 changes: 1 addition & 1 deletion test/ConcurrentCollectionsTests/src/test_dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function test_dict(npairs)
end
end

function var"test_ConcurrentDict(key => value, ...)"()
function test_pairs_constructor()
@testset for Key in [Int8, Int32, Int64], Value in [Int]
@testset "$label" for (label, dict) in [
"ConcurrentDict{_,_}(_ => _, ...)" =>
Expand Down
8 changes: 4 additions & 4 deletions test/ConcurrentCollectionsTests/src/test_dlcrq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using ConcurrentCollections.Implementations:
using ProgressLogging: @logprogress, @withprogress
using Test

function var"test_MPCRQSlot"()
function test_MPCRQSlot()
for index in [111, 222],
safe in [false, true],
polarity in [DATA, ANTIDATA],
Expand Down Expand Up @@ -47,7 +47,7 @@ function test_error()
@test popfirst!(q) == 111
end

function var"test_push-pop 100"()
function test_push_pop_100()
n = 100
q = DualLinkedConcurrentRingQueue{Int}(; log2ringsize = 3)
foldl(push!, 1:n; init = q)
Expand All @@ -59,7 +59,7 @@ function var"test_push-pop 100"()
@test ys == 1:n
end

function var"test_push-pop 100 wait first"()
function test_push_pop_100_wait_first()
n = 100
q = DualLinkedConcurrentRingQueue{Int}(; log2ringsize = 3)
task = Threads.@spawn begin
Expand All @@ -76,7 +76,7 @@ function var"test_push-pop 100 wait first"()
@test ys == 1:n
end

function var"test_push-pop 100 inline"()
function test_push_pop_100_inline()
n = 100
q = DualLinkedConcurrentRingQueue{Int16}(; log2ringsize = 3)
@test q.data.data === nothing
Expand Down
2 changes: 1 addition & 1 deletion test/ConcurrentCollectionsTests/src/test_doctest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ConcurrentCollections
using Documenter: doctest
using Test

function var"test_doctest"()
function test_doctest()
doctest(ConcurrentCollections)
end

Expand Down
2 changes: 1 addition & 1 deletion test/ConcurrentCollectionsTests/src/test_lcrq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function test_push_pop_once_any()
@test trypopfirst!(q) == Some{Any}(111)
end

function var"test_push-pop 100"()
function test_push_pop_100()
n = 100
q = LinkedConcurrentRingQueue{Int}()
foldl(push!, 1:n; init = q)
Expand Down
2 changes: 1 addition & 1 deletion test/ConcurrentCollectionsTests/src/test_mpcrq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using ConcurrentCollections.Implementations:
using ProgressLogging: @logprogress, @withprogress
using Test

function var"test_close"()
function test_close()
crq = IndirectMultiPolarityConcurrentRingQueueNode{Int}(3)
@testset for i in 1:8
@test denqueue!(crq, i) === MPCRQ_ENQUEUED
Expand Down
2 changes: 1 addition & 1 deletion test/ConcurrentCollectionsTests/src/test_msqueue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function pushpop(xs, ntasks = Threads.nthreads())
return fetch.(tasks), queue
end

function var"test_push/pop"()
function test_push_pop()
@testset for T in [Int, Any, Int, Any]
xs = 1:2^10
if T !== eltype(xs)
Expand Down
2 changes: 1 addition & 1 deletion test/ConcurrentCollectionsTests/src/test_tsstack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function pushpop(xs, ntasks = Threads.nthreads())
return fetch.(tasks), stack
end

function var"test_push/pop"()
function test_push_pop()
@testset for T in [Int, Any, Int, Any]
xs = 1:2^10
if T !== eltype(xs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module TestWorkStealingDeque
using ConcurrentCollections
using Test

function var"test_single thread push/pop"()
function test_single_thread_push_pop()
deque = WorkStealingDeque{Int}()
xs = 1:50
foldl(push!, xs; init = deque)
Expand Down Expand Up @@ -62,7 +62,7 @@ function random_pushpop(xs, ntasks = Threads.nthreads() - 1)
return zs, fetch.(tasks)
end

function var"test_random push/pop"()
function test_random_push_pop()
@testset for T in [Int, Any, Int, Any]
# xs = 1:2^20
xs = 1:2^10
Expand Down