From 3df323113f5c30605a168116757c3b9f4b38f063 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Sun, 19 Sep 2021 21:08:53 -0400 Subject: [PATCH] Fix test names --- test/ConcurrentCollectionsTests/src/test_bench_smoke.jl | 2 +- test/ConcurrentCollectionsTests/src/test_crq.jl | 2 +- test/ConcurrentCollectionsTests/src/test_dict.jl | 2 +- test/ConcurrentCollectionsTests/src/test_dlcrq.jl | 8 ++++---- test/ConcurrentCollectionsTests/src/test_doctest.jl | 2 +- test/ConcurrentCollectionsTests/src/test_lcrq.jl | 2 +- test/ConcurrentCollectionsTests/src/test_mpcrq.jl | 2 +- test/ConcurrentCollectionsTests/src/test_msqueue.jl | 2 +- test/ConcurrentCollectionsTests/src/test_tsstack.jl | 2 +- .../src/test_work_stealing_deque.jl | 4 ++-- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/test/ConcurrentCollectionsTests/src/test_bench_smoke.jl b/test/ConcurrentCollectionsTests/src/test_bench_smoke.jl index 67e823f..aa44499 100644 --- a/test/ConcurrentCollectionsTests/src/test_bench_smoke.jl +++ b/test/ConcurrentCollectionsTests/src/test_bench_smoke.jl @@ -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 diff --git a/test/ConcurrentCollectionsTests/src/test_crq.jl b/test/ConcurrentCollectionsTests/src/test_crq.jl index 38451b1..41767f7 100644 --- a/test/ConcurrentCollectionsTests/src/test_crq.jl +++ b/test/ConcurrentCollectionsTests/src/test_crq.jl @@ -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] diff --git a/test/ConcurrentCollectionsTests/src/test_dict.jl b/test/ConcurrentCollectionsTests/src/test_dict.jl index 565a777..431793e 100644 --- a/test/ConcurrentCollectionsTests/src/test_dict.jl +++ b/test/ConcurrentCollectionsTests/src/test_dict.jl @@ -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{_,_}(_ => _, ...)" => diff --git a/test/ConcurrentCollectionsTests/src/test_dlcrq.jl b/test/ConcurrentCollectionsTests/src/test_dlcrq.jl index 74814d0..95c816e 100644 --- a/test/ConcurrentCollectionsTests/src/test_dlcrq.jl +++ b/test/ConcurrentCollectionsTests/src/test_dlcrq.jl @@ -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], @@ -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) @@ -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 @@ -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 diff --git a/test/ConcurrentCollectionsTests/src/test_doctest.jl b/test/ConcurrentCollectionsTests/src/test_doctest.jl index 89a6924..0791cd1 100644 --- a/test/ConcurrentCollectionsTests/src/test_doctest.jl +++ b/test/ConcurrentCollectionsTests/src/test_doctest.jl @@ -4,7 +4,7 @@ import ConcurrentCollections using Documenter: doctest using Test -function var"test_doctest"() +function test_doctest() doctest(ConcurrentCollections) end diff --git a/test/ConcurrentCollectionsTests/src/test_lcrq.jl b/test/ConcurrentCollectionsTests/src/test_lcrq.jl index 795126d..b34f478 100644 --- a/test/ConcurrentCollectionsTests/src/test_lcrq.jl +++ b/test/ConcurrentCollectionsTests/src/test_lcrq.jl @@ -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) diff --git a/test/ConcurrentCollectionsTests/src/test_mpcrq.jl b/test/ConcurrentCollectionsTests/src/test_mpcrq.jl index 01f8dcd..27adcc0 100644 --- a/test/ConcurrentCollectionsTests/src/test_mpcrq.jl +++ b/test/ConcurrentCollectionsTests/src/test_mpcrq.jl @@ -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 diff --git a/test/ConcurrentCollectionsTests/src/test_msqueue.jl b/test/ConcurrentCollectionsTests/src/test_msqueue.jl index f9e46fc..5b8d683 100644 --- a/test/ConcurrentCollectionsTests/src/test_msqueue.jl +++ b/test/ConcurrentCollectionsTests/src/test_msqueue.jl @@ -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) diff --git a/test/ConcurrentCollectionsTests/src/test_tsstack.jl b/test/ConcurrentCollectionsTests/src/test_tsstack.jl index ccfd8ce..14574a7 100644 --- a/test/ConcurrentCollectionsTests/src/test_tsstack.jl +++ b/test/ConcurrentCollectionsTests/src/test_tsstack.jl @@ -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) diff --git a/test/ConcurrentCollectionsTests/src/test_work_stealing_deque.jl b/test/ConcurrentCollectionsTests/src/test_work_stealing_deque.jl index c49e22f..280dd17 100644 --- a/test/ConcurrentCollectionsTests/src/test_work_stealing_deque.jl +++ b/test/ConcurrentCollectionsTests/src/test_work_stealing_deque.jl @@ -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) @@ -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