diff --git a/stronglift_replacement/workout_app/lib/services/http_server_service.dart b/stronglift_replacement/workout_app/lib/services/http_server_service.dart index f8abaad..66f41bc 100644 --- a/stronglift_replacement/workout_app/lib/services/http_server_service.dart +++ b/stronglift_replacement/workout_app/lib/services/http_server_service.dart @@ -70,6 +70,9 @@ class HttpServerService { // External storage is Android-only; getExternalStorageDirectory() throws an // UnsupportedError (not an Exception) on other platforms (desktop / test // host), so guard the call rather than trying to catch it. + // coverage:ignore-start + // Android-only: getExternalStorageDirectory is unavailable on the Linux + // test host, so this block can't be exercised in CI. if (Platform.isAndroid) { try { final dir = await getExternalStorageDirectory(); @@ -77,6 +80,7 @@ class HttpServerService { } on Exception { // Ignore; the /sdcard path is tried first. } + // coverage:ignore-end } for (final path in candidates) { final file = File(path); diff --git a/stronglift_replacement/workout_app/lib/services/sync_service.dart b/stronglift_replacement/workout_app/lib/services/sync_service.dart index 78661cb..8e581bd 100644 --- a/stronglift_replacement/workout_app/lib/services/sync_service.dart +++ b/stronglift_replacement/workout_app/lib/services/sync_service.dart @@ -31,6 +31,9 @@ class SyncService { // External storage is Android-only; getExternalStorageDirectory() throws an // UnsupportedError (not an Exception) on other platforms, so guard the call. + // coverage:ignore-start + // Android-only: getExternalStorageDirectory is unavailable on the Linux + // test host, so this block can't be exercised in CI. if (Platform.isAndroid) { try { final dir = await getExternalStorageDirectory(); @@ -43,6 +46,7 @@ class SyncService { // Fallback failed. } } + // coverage:ignore-end return const SyncResult( success: false,