Skip to content

Conversation

@jush
Copy link
Member

@jush jush commented Feb 2, 2026

Removed code which could never occur when calculating the initial point in lineSliceAlong().

Given that travelled > startDist then double overshot = startDist - travelled could never be 0.

Also added a test to validate when travelled == stopDist.

@jush jush self-assigned this Feb 2, 2026
@jush jush requested a review from a team as a code owner February 2, 2026 19:51
@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.20%. Comparing base (5eddaf6) to head (6c24e12).

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1631      +/-   ##
============================================
+ Coverage     78.08%   78.20%   +0.11%     
- Complexity     1070     1071       +1     
============================================
  Files           161      161              
  Lines          4508     4505       -3     
  Branches        626      625       -1     
============================================
+ Hits           3520     3523       +3     
+ Misses          719      715       -4     
+ Partials        269      267       -2     
Files with missing lines Coverage Δ
...s-turf/src/main/java/com/mapbox/turf/TurfMisc.java 87.80% <100.00%> (+3.37%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant