LCOV - code coverage report

Current view
top level - /src - worker_service.dart
Test
lcov.info
Date
2022-04-02
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 'worker_request.dart';
4
5typedef WorkerInitializer = FutureOr<WorkerService> Function(
6 WorkerRequest startRequest);
7
8typedef CommandHandler = FutureOr Function(WorkerRequest req);
9
10typedef SquadronCallback = void Function();
11
12/// Base class for a worker service.
13abstract class WorkerService {
14 /// Map of command handlers. Upon reception of a [WorkerRequest], the platform worker will dispatch the request
15 /// to the [CommandHandler] mathing the value of [WorkerRequest.command].
16 Map<int, CommandHandler> get operations;
17
18 /// Empty command handlers map.
193 static final Map<int, CommandHandler> noOperations =
202 Map<int, CommandHandler>.unmodifiable(const {});
21}
Choose Features