File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -2,32 +2,15 @@ using ConcurrentSim
2
2
using JET
3
3
using Test
4
4
5
- using JET: ReportPass, BasicPass, InferenceErrorReport, UncaughtExceptionReport
6
-
7
5
using InteractiveUtils
8
6
9
- # Custom report pass that ignores `UncaughtExceptionReport`
10
- # Too coarse currently, but it serves to ignore the various
11
- # "may throw" messages for runtime errors we raise on purpose
12
- # (mostly on malformed user input)
13
- struct MayThrowIsOk <: ReportPass end
14
-
15
- # ignores `UncaughtExceptionReport` analyzed by `JETAnalyzer`
16
- (:: MayThrowIsOk )(:: Type{UncaughtExceptionReport} , @nospecialize (_... )) = return
17
-
18
- # forward to `BasicPass` for everything else
19
- function (:: MayThrowIsOk )(report_type:: Type{<:InferenceErrorReport} , @nospecialize (args... ))
20
- BasicPass ()(report_type, args... )
21
- end
22
-
23
7
@testset " JET checks" begin
24
8
rep = report_package (" ConcurrentSim" ;
25
- report_pass= MayThrowIsOk (),
26
9
ignored_modules= (
27
10
AnyFrameModule (InteractiveUtils),
28
11
)
29
12
)
30
13
@show rep
31
14
@test_broken length (JET. get_reports (rep)) == 0
32
- @test length (JET. get_reports (rep)) <= 4
15
+ @test length (JET. get_reports (rep)) <= 3
33
16
end
You can’t perform that action at this time.
0 commit comments