"calculate_acwr works with various parameters"
"calculate_exposure works with various parameters"
# Use single sport to avoid grouping issues in test
"load_local_activities works with test export"
"Skipping file system test - requires actual export structure"

<purrr_error_indexed/rlang_error/error/condition>
Error in `map(.x, .f, ...)`: ℹ In index: 1.
Caused by error in `parse_activity_file()`:
! Activity file does not exist: D:\temp\2025_10_10_06_30_16_11802\RtmpY1RSSR/D:\temp\2025_10_10_06_30_16_11802\RtmpY1RSSR/activities/5.gpx

total_elevation_gain = runif(10, 0, 100),
start_date = seq(as.Date("2024-01-01"), by = "day", length.out = 10),
start_date_local = seq(as.Date("2024-01-01"), by = "day", length.out = 10),
filename = paste0("activities/", 1:10, ".gpx"),
test_that("calculate_pbs validates activities_data input", {
test_that("calculate_pbs handles different distance parameters", {
# Test with valid distances (may warn if no data meets criteria)
# Test with empty distances (should use defaults or handle gracefully)
test_that("calculate_pbs filters by activity type", {
# Create activities with different types
expect_true(all(result_run$activity_type == "Run" | is.na(result_run$activity_type)))
# Test with non-existent activity type (should warn about no activities)
test_that("calculate_pbs filters by date range", {
test_that("calculate_pbs returns correct structure", {
# If result has rows, check for expected columns and types
expected_cols <- c("distance_m", "time_seconds", "pace_per_km",
# Empty result is acceptable when no GPX files are available

"calculate_pbs handles different distance parameters"
"calculate_pbs filters by activity type"

`parse_activity_file(temp_file)` did not throw an error.

test_that("parse_fit_file handles errors gracefully", {
test_that("parse_tcx_file handles invalid XML", {
test_that("parse_tcx_file handles valid but empty TCX", {
test_that("parse_gpx_file handles invalid XML", {
test_that("parse_gpx_file handles valid but empty GPX", {
test_that("parse_activity_file handles different file extensions", {