LCOV - code coverage report

Current view
top level - src/_impl/web - _platform.dart
Test
lcov.info
Date
2024-11-13
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines99100.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import '../../converters/cast_converter.dart';
2import '../../converters/converter.dart';
3import '../../converters/num_converter.dart';
4import '../../squadron_platform_type.dart';
5import '_patch.dart';
6
7Converter getPlatformConverter() => (1.toDouble() is int)
89 ? CastConverter.instance // JavaScript
9 : NumConverter.instance; // Web Assembly
10
11SquadronPlatformType getPlatformType() => (1.toDouble() is int)
122 ? SquadronPlatformType.js // JavaScript
13 : SquadronPlatformType.wasm; // Web Assembly
14
1512Uri mapUrl(String url) {
1612 if (url.startsWith('~')) {
1712 final root = getHome();
1812 if (root != null) {
1912 url = '$root${url.substring(1)}';
20 }
21 }
2212 return Uri.parse(url);
2312}
Choose Features