LCOV - code coverage report

Current view
top level - src/annotations - target_platform.dart
Test
lcov.info
Date
2025-03-26
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines33100.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1sealed class TargetPlatform {
2 static const none = 0;
3
4 static const vm = 1;
5 static const js = 2;
6 static const wasm = 4;
7
8 static const web = js | wasm;
9 static const all = vm | js | wasm;
10}
11
12extension TargetPlatformExt on int {
133 bool get hasVm => (this & TargetPlatform.vm) != 0;
143 bool get hasJs => (this & TargetPlatform.js) != 0;
153 bool get hasWasm => (this & TargetPlatform.wasm) != 0;
16}
Choose Features