Skip to content

Testing

Raul Montoya Cardenas edited this page Jul 29, 2026 · 2 revisions

Testing

Run

julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.test()'

Agent / CI convention: Julia 1.12.

Layout

File Role
test/runtests.jl Entry
test/test_nero.jl Full suite (~650+ lines)

Coverage themes (main)

  • Generic APIActivityRegion / RegionRouter construction, weight sum ≈ 1, diagnostics non-empty, active region gains weight, custom region counts
  • Legacy aliases — identity of NERO shims
  • Inhibition (LIM-229) — default 4×4 INHIBIT, n=3 slice, n=6 scaled matrix, custom matrix, wrong size errors, non-zero vs zero matrix behavior
  • Checkpointing (LIM-234)save_state / load_state! round-trip, dimension and structural mismatch rejection, load_state alias
  • adapt_leak! (LIM-233) — default percent-scale adapter, custom adapter, finite checks

Examples as smoke tests

Not part of Pkg.test, but useful locally:

julia --project=. examples/three_region.jl
julia --project=. examples/six_region.jl
julia --project=. examples/reservoir_integration.jl

Related


Last updated: July 29, 2026 Updated by: Grok Build: Grok 4.5 Package tip reference: c9ff99c (main)

Clone this wiki locally