Skip to content

Commit 4c970c7

Browse files
Merge pull request #2769 from SciML/add-jet-tests-implicit-discrete
Add JET.jl static analysis tests to SimpleImplicitDiscreteSolve
2 parents 41fdbfa + 5cd5844 commit 4c970c7

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

lib/SimpleImplicitDiscreteSolve/Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ SimpleNonlinearSolve = "727e6d20-b764-4bd8-a329-72de5adea6c7"
1111

1212
[compat]
1313
DiffEqBase = "6.164.1"
14+
JET = "0.9.18, 0.10.4"
1415
OrdinaryDiffEqSDIRK = "1.2.0"
1516
Reexport = "1.2.2"
1617
SciMLBase = "2.74.1"
@@ -19,8 +20,9 @@ Test = "1.10"
1920
julia = "1.10"
2021

2122
[extras]
23+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
2224
OrdinaryDiffEqSDIRK = "2d112036-d095-4a1e-ab9a-08536f3ecdbf"
2325
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2426

2527
[targets]
26-
test = ["OrdinaryDiffEqSDIRK", "Test"]
28+
test = ["JET", "OrdinaryDiffEqSDIRK", "Test"]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import SimpleImplicitDiscreteSolve
2+
using JET
3+
4+
@testset "JET Tests" begin
5+
test_package(
6+
SimpleImplicitDiscreteSolve, target_defined_modules = true, mode = :typo)
7+
end

lib/SimpleImplicitDiscreteSolve/test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,7 @@ end
6868
@test step[1]^2 + step[2]^2 16
6969
end
7070
end
71+
72+
if isempty(VERSION.prerelease)
73+
include("jet.jl")
74+
end

0 commit comments

Comments
 (0)