LCOV - code coverage report

Current view
top level - src - squadron_platform_type.dart
Test
lcov.info
Date
2024-11-13
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines111573.3%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
10enum 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
114 bool get isVm => this == vm;
128 bool get isJs => this == js;
135 bool get isWasm => this == wasm;
146 bool get isWeb => isJs || isWasm;
15
162 static SquadronPlatformType? tryParse(String label) {
173 if (label == js.label) return js;
183 if (label == wasm.label) return wasm;
192 if (label == vm.label) return vm;
200 if (label == unknown.label) return unknown;
210 return null;
221 }
23
2410 @override
2510 String toString() => label;
260}
Choose Features