-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d300209
commit 5639465
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Test | ||
using ForwardDiff | ||
using Aqua | ||
|
||
@testset "Aqua tests (performance)" begin | ||
# This tests that we don't accidentally run into | ||
# https://github.com/JuliaLang/julia/issues/29393 | ||
ua = Aqua.detect_unbound_args_recursively(ForwardDiff) | ||
@test length(ua) == 6 | ||
|
||
# See: https://github.com/SciML/OrdinaryDiffEq.jl/issues/1750 | ||
# Test that we're not introducing method ambiguities across deps | ||
ambs = Aqua.detect_ambiguities(ForwardDiff; recursive = true) | ||
pkg_match(pkgname, pkdir::Nothing) = false | ||
pkg_match(pkgname, pkdir::AbstractString) = occursin(pkgname, pkdir) | ||
filter!(x -> pkg_match("ForwardDiff", pkgdir(last(x).module)), ambs) | ||
|
||
@test length(ambs) == 0 | ||
end | ||
|
||
@testset "Aqua tests (additional)" begin | ||
Aqua.test_undefined_exports(ForwardDiff) | ||
Aqua.test_stale_deps(ForwardDiff) | ||
Aqua.test_deps_compat(ForwardDiff) | ||
Aqua.test_project_extras(ForwardDiff) | ||
Aqua.test_project_toml_formatting(ForwardDiff) | ||
Aqua.test_piracy(ForwardDiff) | ||
end | ||
|
||
nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters