Skip to content

Commit

Permalink
Move test_pirate out of the Aqua.Piracy module (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Jun 24, 2023
1 parent fa32bd6 commit dd1d392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/Aqua.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ include("deps_compat.jl")
include("project_toml_formatting.jl")
include("piracy.jl")

using .Piracy: test_piracy

"""
test_all(testtarget::Module)
Expand Down
6 changes: 3 additions & 3 deletions src/piracy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ function hunt(pkg::Base.PkgId; from::Module)
end
end

end # module

"""
test_piracy(m::Module)
Expand All @@ -172,7 +174,7 @@ See [Julia documentation](https://docs.julialang.org/en/v1/manual/style-guide/#A
`@test`.
"""
function test_piracy(m::Module; broken::Bool = false)
v = hunt(m)
v = Piracy.hunt(m)
if !isempty(v)
printstyled(
stderr,
Expand All @@ -189,5 +191,3 @@ function test_piracy(m::Module; broken::Bool = false)
@test isempty(v)
end
end

end # module

0 comments on commit dd1d392

Please sign in to comment.