Skip to content

Commit a60ca02

Browse files
alecloudenbackclaude
authored andcommitted
Cover degree-1 (linear) BSplineInterpolation in thread-safety tests
A degree-1 B-spline goes through the same _interpolate method as higher degrees (dispatch is on type, not degree), so it was equally subject to the shared-buffer race; add it explicitly to document the coverage. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f16c950 commit a60ca02

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/Methods/thread_safety_tests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ function thread_safety_interpolants()
1919
] # 2 × length(t): last axis indexes t
2020
return [
2121
("BSplineInterpolation", BSplineInterpolation(u, t, 3, :Uniform, :Average)),
22+
# degree 1 == "linear" B-spline: same `_interpolate` method, so equally affected
23+
("BSplineInterpolation (degree 1)", BSplineInterpolation(u, t, 1, :Uniform, :Average)),
2224
("BSplineApprox", BSplineApprox(u, t, 3, 4, :Uniform, :Average)),
2325
("BSplineInterpolation (array)", BSplineInterpolation(umat, t, 3, :Uniform, :Average)),
2426
("BSplineApprox (array)", BSplineApprox(umat, t, 3, 4, :Uniform, :Average)),

0 commit comments

Comments
 (0)