|
1 | | -using PoissonRandom, Aqua, JET, ExplicitImports |
2 | | -using Random |
3 | | -using Test |
4 | | - |
5 | | -@testset "Aqua" begin |
6 | | - Aqua.find_persistent_tasks_deps(PoissonRandom) |
7 | | - Aqua.test_ambiguities(PoissonRandom, recursive = false) |
8 | | - Aqua.test_deps_compat(PoissonRandom) |
9 | | - Aqua.test_piracies( |
10 | | - PoissonRandom, |
11 | | - treat_as_own = [] |
12 | | - ) |
13 | | - Aqua.test_project_extras(PoissonRandom) |
14 | | - Aqua.test_stale_deps(PoissonRandom) |
15 | | - Aqua.test_unbound_args(PoissonRandom) |
16 | | - Aqua.test_undefined_exports(PoissonRandom) |
17 | | -end |
18 | | - |
19 | | -@testset "JET static analysis" begin |
20 | | - @testset "Type stability" begin |
21 | | - JET.@test_opt target_modules = (PoissonRandom,) pois_rand(10.0) |
22 | | - JET.@test_opt target_modules = (PoissonRandom,) pois_rand(Random.default_rng(), 10.0) |
23 | | - JET.@test_opt target_modules = (PoissonRandom,) pois_rand(PassthroughRNG(), 10.0) |
24 | | - end |
25 | | - |
26 | | - @testset "Error analysis" begin |
27 | | - JET.@test_call target_modules = (PoissonRandom,) pois_rand(10.0) |
28 | | - JET.@test_call target_modules = (PoissonRandom,) pois_rand(Random.default_rng(), 10.0) |
29 | | - JET.@test_call target_modules = (PoissonRandom,) pois_rand(PassthroughRNG(), 10.0) |
30 | | - end |
31 | | -end |
32 | | - |
33 | | -@testset "ExplicitImports" begin |
34 | | - @test check_no_implicit_imports(PoissonRandom) === nothing |
35 | | - @test check_no_stale_explicit_imports(PoissonRandom) === nothing |
36 | | -end |
| 1 | +using SciMLTesting, PoissonRandom, JET, Test |
| 2 | + |
| 3 | +run_qa( |
| 4 | + PoissonRandom; |
| 5 | + explicit_imports = true, |
| 6 | + ei_kwargs = (; |
| 7 | + # default_rng / rng_native_52 are Random stdlib internals (not public in |
| 8 | + # Random): default_rng is the standard default-RNG accessor; rng_native_52 is |
| 9 | + # extended for the PassthroughRNG sampler chain. |
| 10 | + all_qualified_accesses_are_public = (; ignore = (:default_rng, :rng_native_52)), |
| 11 | + ), |
| 12 | +) |
0 commit comments