Skip to content

Commit 42ab666

Browse files
committed
Add ExplicitImports.jl tests for import hygiene
- Added ExplicitImports.jl test suite to verify no implicit imports - Added ExplicitImports.jl test suite to verify no stale explicit imports - Moved ExplicitImports dependency to test dependencies in Project.toml - Updated test/runtests.jl to include explicit imports tests - All tests pass successfully The package is currently clean with no import issues detected. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 5a0d0de commit 42ab666

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@ ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
88

99
[compat]
1010
ModelingToolkit = "9"
11+
12+
[extras]
13+
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
14+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
15+
16+
[targets]
17+
test = ["ExplicitImports", "Test"]

test/explicit_imports.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using ExplicitImports
2+
using ModelingToolkitCourse
3+
using Test
4+
5+
@testset "ExplicitImports" begin
6+
@test check_no_implicit_imports(ModelingToolkitCourse) === nothing
7+
@test check_no_stale_explicit_imports(ModelingToolkitCourse) === nothing
8+
end

test/runtests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using Test
2+
3+
@testset "ModelingToolkitCourse.jl" begin
4+
@testset "Explicit Imports" begin
5+
include("explicit_imports.jl")
6+
end
7+
end

0 commit comments

Comments
 (0)