LCOV - code coverage report

Current view
top level - src/_impl/native - _platform.dart
Test
lcov.info
Date
2026-11-07
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines41040.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import 'dart:io';
2import 'dart:isolate';
3
4import 'package:meta/meta.dart';
5
6import '../../converters/cast_converter.dart';
7import '../../squadron_platform_type.dart';
8import '../../utils.dart';
9
10/// threadIDs may not be unique on VM...
115final threadId = Isolate.current.hashCode.hex;
12
13const platformConverter = CastConverter.instance;
14
15const platformType = SquadronPlatformType.vm;
16
173final osType = switch (Platform.operatingSystem) {
181 'windows' => SquadronOSType.windows,
190 'linux' => SquadronOSType.linux,
200 'fuchsia' => SquadronOSType.fuchsia,
210 'macos' => SquadronOSType.macos,
220 'android' => SquadronOSType.android,
230 'ios' => SquadronOSType.ios,
24 _ => SquadronOSType.unknown
25};
26
270Uri mapUrl(String url) => Uri.parse(url);
28
291@internal
30bool isSameInstance(Object a, Object b) => identical(a, b);
Choose Features