File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
import RegistryTools
2
2
using Test: @testset , @test
3
+ import Pkg
3
4
4
5
@testset " RegistryTools" begin
5
6
6
7
include (" regedit.jl" )
7
8
include (" compress.jl" )
8
9
10
+ # ExplicitImports does not support as old Julia versions as RegistryTools does.
11
+ # Change this to a regular test dependency when it becomes possible, i.e.
12
+ # when pre-1.7 support is dropped.
13
+ if VERSION >= v " 1.7"
14
+ Pkg. add (name = " ExplicitImports" , uuid = " 7d51a73a-1435-4ff3-83d9-f097790105c7" , preserve= Pkg. PRESERVE_ALL)
15
+ using ExplicitImports: check_no_implicit_imports, check_no_stale_explicit_imports
16
+ @testset " ExplicitImports" begin
17
+ @test isnothing (check_no_implicit_imports (RegistryTools))
18
+ @test isnothing (check_no_stale_explicit_imports (RegistryTools))
19
+ end
20
+ end
21
+
9
22
end
You can’t perform that action at this time.
0 commit comments