LCOV - code coverage report

Current view
top level - src/worker - worker_message.dart
Test
lcov.info
Date
2024-11-13
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines5683.3%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import 'package:meta/meta.dart';
2
3import '../_impl/xplat/_time_stamp.dart';
4
5/// Make [WorkerMessage] a `List` to minimize serialization overhead.
6extension type WorkerMessage(List data) {
7 /// [travelTime] is set by the receiving end and measures the time (in
8 /// microseconds) it took between the moment the message was serialized and
9 /// the moment it was deserialized.
100 int? get travelTime => data[_$traveltime];
11}
12
13const _$traveltime = 0;
14
15@internal
16extension WorkerMessageExt on WorkerMessage {
1710 void unwrapTravelTime() {
1830 final ts = (data[_$traveltime] as num?)?.toInt();
1912 if (ts != null) {
2039 data[_$traveltime] = microsecTimeStamp() - ts;
21 }
221 }
23}
Choose Features