Skip to content

Commit 96059a1

Browse files
committed
rename
1 parent c8627b0 commit 96059a1

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

docs/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ For information about ChainRules, including how to write rules, refer to the gen
1212
## Testing Method Table Sensibility
1313
A basic feature of ChainRulesTestUtils is its ability to check that the method tables for `rrule` and `frule` remain sensible.
1414
This searches the method tables for methods that should not exist and when it fails tells you where they were defined.
15-
By calling [`test_method_tables_sensibility`](@ref) ChainRulesTestUtils will check for things such as having attracted a rule to `DataType` rather than attaching it to a constructor.
16-
Basically all packages using ChainRulesTestUtils can use [`test_method_tables_sensibility`](@ref), as it is independent of what rules you have written.
15+
By calling [`test_method_tables`](@ref) ChainRulesTestUtils will check for things such as having attracted a rule to `DataType` rather than attaching it to a constructor.
16+
Basically all packages using ChainRulesTestUtils can use [`test_method_tables`](@ref), as it is independent of what rules you have written.
1717

1818
## Canonical example of testing frule and rrule
1919

src/ChainRulesTestUtils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export TestIterator
1515
export test_approx, test_scalar, test_frule, test_rrule, generate_well_conditioned_matrix
1616
export , rand_tangent
1717
export @maybe_inferred
18-
export test_method_tables_sensibility
18+
export test_method_tables
1919

2020
__init__() = init_test_inferred_setting!()
2121

test/global_checks.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@ end
44

55
if VERSION >= v"1.3"
66
@testset "global_checks.jl" begin
7-
test_method_tables_sensibility()
7+
test_method_tables()
88
ChainRulesCore.rrule(::typeof(BadConstructor), x) = nothing
9-
@test fails(test_method_tables_sensibility)
9+
@test fails(test_method_tables)
1010
Base.delete_method(Base.which(rrule, (DataType, Any)))
11-
test_method_tables_sensibility() # make sure delete worked
11+
test_method_tables() # make sure delete worked
1212

1313
ChainRulesCore.rrule(::RuleConfig, ::typeof(BadConstructor), x) = nothing
14-
@test fails(test_method_tables_sensibility)
14+
@test fails(test_method_tables)
1515
Base.delete_method(Base.which(rrule, (RuleConfig, DataType, Any)))
16-
test_method_tables_sensibility() # make sure delete worked
16+
test_method_tables() # make sure delete worked
1717

1818

1919

2020
ChainRulesCore.frule(::Any, ::typeof(BadConstructor), x) = nothing
21-
@test fails(test_method_tables_sensibility)
21+
@test fails(test_method_tables)
2222
Base.delete_method(Base.which(frule, (Any, DataType, Any)))
23-
test_method_tables_sensibility() # make sure delete worked
23+
test_method_tables() # make sure delete worked
2424

2525
ChainRulesCore.frule(::RuleConfig, ::Any, ::typeof(BadConstructor), x) = nothing
26-
@test fails(test_method_tables_sensibility)
26+
@test fails(test_method_tables)
2727
Base.delete_method(Base.which(frule, (RuleConfig, Any, DataType, Any)))
28-
test_method_tables_sensibility() # make sure delete worked
28+
test_method_tables() # make sure delete worked
2929
end
3030
else # pre 1.3, so no `delete_method` so just test happy path
3131
@testset "global_checks.jl" begin
32-
test_method_tables_sensibility()
32+
test_method_tables()
3333
end
3434
end

0 commit comments

Comments
 (0)