LCOV - code coverage report

Current view
top level - src - typedefs.dart
Test
lcov.info
Date
2025-03-26
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines22100.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import 'dart:async';
2
3import '_impl/xplat/_typedefs.dart'
4 if (dart.library.io) '_impl/native/_typedefs.dart'
5 if (dart.library.html) '_impl/web/_typedefs.dart'
6 if (dart.library.js) '_impl/web/_typedefs.dart'
7 if (dart.library.js_interop) '_impl/web/_typedefs.dart' as impl;
8import 'worker/worker_request.dart';
9import 'worker_service.dart';
10
11typedef EntryPoint = impl.EntryPoint;
12typedef PlatformChannel = impl.PlatformChannel;
13typedef PlatformThread = impl.PlatformThread;
14typedef PlatformThreadHook = impl.PlatformThreadHook;
15
16typedef WorkerInitializer = FutureOr<WorkerService> Function(
17 WorkerRequest startRequest);
18typedef CommandHandler = FutureOr<dynamic> Function(WorkerRequest req);
19typedef StreamCanceler = void Function();
20
21typedef Cast<T> = T Function(dynamic);
22
23extension type OperationsMap(Map<int, CommandHandler> _ops) {
2420 CommandHandler? operator [](int key) => _ops[key];
25
2620 Iterable<int> get keys => _ops.keys;
27}
Choose Features