@@ -468,22 +468,22 @@ end
468
468
469
469
# non-inline testset with regex filtering support
470
470
macro testset (mod:: Module , isfinal:: Bool , pat:: Pattern , id:: Int64 , desc:: Union{String,Expr} ,
471
- options, results :: Dict , stats:: Bool , chan, body)
471
+ options, pastresults :: Dict , stats:: Bool , chan, body)
472
472
Testset. testset_beginend (mod, isfinal, pat, id, desc,
473
- options, results , stats, chan, body, __source__)
473
+ options, pastresults , stats, chan, body, __source__)
474
474
end
475
475
476
476
macro testset (mod:: Module , isfinal:: Bool , pat:: Pattern , id:: Int64 , desc:: Union{String,Expr} ,
477
- options, results :: Dict , stats:: Bool , chan, loops, body)
477
+ options, pastresults :: Dict , stats:: Bool , chan, loops, body)
478
478
Testset. testset_forloop (mod, isfinal, pat, id, desc,
479
- options, results , stats, chan, loops, body, __source__)
479
+ options, pastresults , stats, chan, loops, body, __source__)
480
480
end
481
481
482
482
"""
483
483
Generate the code for a `@testset` with a `begin`/`end` argument
484
484
"""
485
485
function testset_beginend (mod:: Module , isfinal:: Bool , pat:: Pattern , id:: Int64 , desc, options,
486
- results :: Dict , stats:: Bool , chan, tests, source)
486
+ pastresults :: Dict , stats:: Bool , chan, tests, source)
487
487
# Generate a block of code that initializes a new testset, adds
488
488
# it to the task local storage, evaluates the test(s), before
489
489
# finally removing the testset and giving it a chance to take
@@ -521,7 +521,7 @@ function testset_beginend(mod::Module, isfinal::Bool, pat::Pattern, id::Int64, d
521
521
Base. catch_stack (), $ (QuoteNode (source))))
522
522
finally
523
523
copy! (RNG, oldrng)
524
- $ results [ts. subject] = ! anyfailed (ts)
524
+ $ pastresults [ts. subject] = ! anyfailed (ts)
525
525
pop_testset ()
526
526
ret = finish (ts, $ chan)
527
527
end
541
541
Generate the code for a `@testset` with a `for` loop argument
542
542
"""
543
543
function testset_forloop (mod:: Module , isfinal:: Bool , pat:: Pattern , id:: Int64 ,
544
- desc:: Union{String,Expr} , options, results :: Dict , stats, chan,
544
+ desc:: Union{String,Expr} , options, pastresults :: Dict , stats, chan,
545
545
loops, tests, source)
546
546
547
547
desc = esc (desc)
@@ -568,13 +568,13 @@ function testset_forloop(mod::Module, isfinal::Bool, pat::Pattern, id::Int64,
568
568
let
569
569
ts. timed = @stats $ stats $ (esc (tests))
570
570
end
571
- $ results [ts. subject] = ! anyfailed (ts)
571
+ $ pastresults [ts. subject] = ! anyfailed (ts)
572
572
catch err
573
573
err isa InterruptException && rethrow ()
574
574
# Something in the test block threw an error. Count that as an
575
575
# error in this test set
576
576
record (ts, Error (:nontest_error , Expr (:tuple ), err, Base. catch_stack (), $ (QuoteNode (source))))
577
- $ results [ts. subject] = false
577
+ $ pastresults [ts. subject] = false
578
578
end
579
579
end
580
580
end
0 commit comments