| Hit | Total | Coverage | |
|---|---|---|---|
| Lines | 3 | 3 | 100.0% |
| Functions | 0 | 0 | - |
| Branches | 0 | 0 | - |
| Line | Branch | Hits | Source code |
|---|---|---|---|
| 1 | sealed 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 | |
||
| 12 | extension TargetPlatformExt on int { |
||
| 13 | 3 | bool get hasVm => (this & TargetPlatform.vm) != 0; |
|
| 14 | 3 | bool get hasJs => (this & TargetPlatform.js) != 0; |
|
| 15 | 3 | bool get hasWasm => (this & TargetPlatform.wasm) != 0; |
|
| 16 | } |