File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
DifferentiationInterfaceTest/test
ext/DifferentiationInterfaceForwardDiffExt Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 11module DifferentiationInterfaceForwardDiffExt
22
3- using ADTypes: AbstractADType, AutoForwardDiff
4- using Base: Fix1, Fix2
3+ using ADTypes: AutoForwardDiff
54import DifferentiationInterface as DI
65using DifferentiationInterface:
76 BatchSizeSettings,
87 Cache,
98 Constant,
109 PrepContext,
1110 Context,
12- FixTail,
1311 DerivativePrep,
1412 DifferentiateWith,
1513 GradientPrep,
1614 HessianPrep,
1715 HVPPrep,
1816 JacobianPrep,
19- NoDerivativePrep,
2017 NoSecondDerivativePrep,
2118 PushforwardPrep,
2219 Rewrap,
@@ -42,17 +39,14 @@ using ForwardDiff:
4239 derivative,
4340 derivative!,
4441 extract_derivative,
45- extract_derivative!,
4642 gradient,
4743 gradient!,
4844 hessian,
4945 hessian!,
5046 jacobian,
5147 jacobian!,
52- npartials,
5348 partials,
5449 value
55- using LinearAlgebra: dot, mul!
5650
5751DI. check_available (:: AutoForwardDiff ) = true
5852
Original file line number Diff line number Diff line change 2323 @test JuliaFormatter. format (DifferentiationInterface; verbose= false , overwrite= false )
2424end
2525
26+ @testset " Documentation" begin
27+ if VERSION >= v " 1.11"
28+ @test isempty (Docs. undocumented_names (DifferentiationInterface))
29+ end
30+ end
31+
2632@testset " ExplicitImports" begin
2733 @test check_no_implicit_imports (DifferentiationInterface) === nothing
2834 @test check_no_stale_explicit_imports (DifferentiationInterface) === nothing
Original file line number Diff line number Diff line change 2121 JET. test_package (DifferentiationInterfaceTest; target_defined_modules= true )
2222end
2323
24+ @testset " Documentation" begin
25+ if VERSION >= v " 1.11"
26+ @test isempty (Docs. undocumented_names (DifferentiationInterfaceTest))
27+ end
28+ end
29+
2430@testset " ExplicitImports" begin
2531 @test_broken check_no_implicit_imports (DifferentiationInterfaceTest) === nothing
2632 @test_broken check_no_stale_explicit_imports (DifferentiationInterfaceTest) === nothing
You can’t perform that action at this time.
0 commit comments