@@ -4,32 +4,15 @@ using Test
4
4
5
5
import LinearAlgebra, DelimitedFiles
6
6
7
- using JET: ReportPass, BasicPass, InferenceErrorReport, UncaughtExceptionReport
8
-
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 (" LDPCDecoders" ;
25
- report_pass= MayThrowIsOk (),
26
9
ignored_modules= (
27
10
AnyFrameModule (LinearAlgebra),
28
11
AnyFrameModule (DelimitedFiles),
29
12
AnyFrameModule (Base. Broadcast),
30
13
)
31
14
)
32
15
@show rep
33
- @test_broken length (JET. get_reports (rep)) == 0
34
- @test length (JET. get_reports (rep)) <= 2
16
+ # @test_broken length(JET.get_reports(rep)) == 0
17
+ @test length (JET. get_reports (rep)) == 0
35
18
end
0 commit comments