aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-08-25 11:34:27 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-08-25 11:34:27 +0200
commite54e2b313a37c2d2af4e3e537ad4e64e8c816e86 (patch)
tree37eed4e86668f3854c9dacb0edf5d95e0efceaca /web
parent708f5428968b7c1526f257b683d0146ef5dae418 (diff)
Remove per-index ride accessors now dead after the component migration
The DistanceM, ElevationM, Coord, Timestamp and optional metric index accessors (HeartRateBpm, CadenceRpm, PowerW) are no longer used by any production code now that algorithms and consumers read ride components. Tests that asserted metric parsing and coordinates now read the component slices (Distances, Coords, HeartRates, Cadences, Powers).
Diffstat (limited to 'web')
-rw-r--r--web/server_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/server_test.go b/web/server_test.go
index b3f6028..9ee578e 100644
--- a/web/server_test.go
+++ b/web/server_test.go
@@ -234,8 +234,8 @@ func TestBuildRideProfileIncludesOfficialClimbMatch(t *testing.T) {
profile := buildRideProfile(parsed, nil, []official_climb.OfficialClimb{{
ID: 42,
Name: "Col de Test",
- StartCoord: parsed.Coord(0),
- EndCoord: parsed.Coord(1),
+ StartCoord: parsed.Coords()[0],
+ EndCoord: parsed.Coords()[1],
}}, official_climb.DefaultMatchPolicy())
require.Len(t, profile.Climbs, 1)
@@ -256,8 +256,8 @@ func TestBuildRideProfileUsesOfficialClimbBoundaries(t *testing.T) {
profile := buildRideProfile(parsed, nil, []official_climb.OfficialClimb{{
ID: 42,
Name: "Col de Test",
- StartCoord: parsed.Coord(0),
- EndCoord: parsed.Coord(2),
+ StartCoord: parsed.Coords()[0],
+ EndCoord: parsed.Coords()[2],
}}, official_climb.DefaultMatchPolicy())
require.Len(t, profile.Climbs, 1)