diff --git a/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/qa/qa.jl b/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/qa/qa.jl index 0a53d9f3..c2ed190d 100644 --- a/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/qa/qa.jl +++ b/lib/RecursiveArrayToolsArrayPartitionAnyAll/test/qa/qa.jl @@ -1,8 +1,12 @@ using RecursiveArrayToolsArrayPartitionAnyAll, Aqua, JET, Test +const RATAPAA = RecursiveArrayToolsArrayPartitionAnyAll + @testset "QA" begin @testset "Aqua" begin - Aqua.test_all(RecursiveArrayToolsArrayPartitionAnyAll) + # `any`/`all` are extended on the RecursiveArrayTools-owned `ArrayPartition` + # type, so they are intentional (owned) methods, not piracy. + Aqua.test_all(RATAPAA; piracies = (; treat_as_own = [RATAPAA.ArrayPartition])) end @testset "JET" begin JET.test_package(RecursiveArrayToolsArrayPartitionAnyAll; target_defined_modules = true) diff --git a/lib/RecursiveArrayToolsShorthandConstructors/test/qa/qa.jl b/lib/RecursiveArrayToolsShorthandConstructors/test/qa/qa.jl index 74f2c270..82a07544 100644 --- a/lib/RecursiveArrayToolsShorthandConstructors/test/qa/qa.jl +++ b/lib/RecursiveArrayToolsShorthandConstructors/test/qa/qa.jl @@ -1,8 +1,13 @@ using RecursiveArrayToolsShorthandConstructors, Aqua, JET, Test +const RATSC = RecursiveArrayToolsShorthandConstructors + @testset "QA" begin @testset "Aqua" begin - Aqua.test_all(RecursiveArrayToolsShorthandConstructors) + # `getindex(::Type{VA}, ...)` / `getindex(::Type{AP}, ...)` extend Base on + # RecursiveArrayTools-owned types, so they are intentional (owned) methods, + # not piracy. + Aqua.test_all(RATSC; piracies = (; treat_as_own = [RATSC.VA, RATSC.AP])) end @testset "JET" begin JET.test_package(RecursiveArrayToolsShorthandConstructors; target_defined_modules = true)