LCOV - code coverage report

Current view
top level - src/worker - worker_message.dart
Test
lcov.info
Date
2026-02-21
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines3475.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import '../_impl/xplat/_time_stamp.dart';
2
3/// Make [WorkerMessage] a `List` to minimize serialization overhead.
4extension type WorkerMessage(List data) implements Object {
5 /// [travelTime] is set by the receiving end and measures the time (in
6 /// microseconds) it took between the moment the message was serialized and
7 /// the moment it was deserialized.
80 int? get travelTime => data[_$traveltime];
9
1010 void unwrapTravelTime() {
1120 final ts = (data[_$traveltime] as num?)?.toInt();
12 if (ts != null) {
1330 data[_$traveltime] = microsecTimeStamp() - ts;
14 }
15 }
16}
17
18const _$traveltime = 0;
Choose Features