LCOV - code coverage report

Current view
top level - src - squadron_platform_type.dart
Test
lcov.info
Date
2025-03-26
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines101190.9%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1enum SquadronPlatformType {
2 unknown('Unknown'),
3 vm('Dart VM'),
4 js('JavaScript'),
5 wasm('Web Assembly');
6
7 const SquadronPlatformType(this.label);
8
9 final String label;
10
1124 bool get isVm => this == vm;
128 bool get isJs => this == js;
136 bool get isWasm => this == wasm;
149 bool get isWeb => isJs || isWasm;
15
161 static SquadronPlatformType? tryParse(String label) {
172 if (label == js.label) return js;
182 if (label == wasm.label) return wasm;
192 if (label == vm.label) return vm;
200 if (label == unknown.label) return unknown;
21 return null;
22 }
23
241 @override
251 String toString() => label;
26}
Choose Features