-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy path_formalities.jl
More file actions
45 lines (39 loc) · 1.42 KB
/
_formalities.jl
File metadata and controls
45 lines (39 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# tested first so that the suite fails quickly
using Aqua: Aqua
using DifferentiationInterface
using ExplicitImports
using JET: JET
using JuliaFormatter: JuliaFormatter
using Test
using SparseMatrixColorings
using SparseArrays
@testset "Aqua" begin
Aqua.test_all(
DifferentiationInterface; ambiguities=false, deps_compat=(check_extras = false)
)
end
@testset "JET" begin
if VERSION < v"1.12"
JET.test_package(DifferentiationInterface; target_defined_modules=true)
end
end
@testset "JuliaFormatter" begin
@test JuliaFormatter.format(DifferentiationInterface; verbose=false, overwrite=false)
end
@testset "Documentation" begin
if VERSION >= v"1.11"
@test isempty(Docs.undocumented_names(DifferentiationInterface))
end
end
@testset "ExplicitImports" begin
@test check_no_implicit_imports(DifferentiationInterface) === nothing
@test check_no_stale_explicit_imports(DifferentiationInterface) === nothing
@test check_all_explicit_imports_via_owners(DifferentiationInterface) === nothing
@test check_all_qualified_accesses_via_owners(DifferentiationInterface) === nothing
@test check_no_self_qualified_accesses(DifferentiationInterface) === nothing
if VERSION >= v"1.11"
@test check_all_explicit_imports_are_public(DifferentiationInterface;) === nothing
@test_skip check_all_qualified_accesses_are_public(DifferentiationInterface) ===
nothing
end
end