LCOV - code coverage report

Current view
top level - src/worker - worker_message.dart
Test
lcov.info
Date
2026-03-04
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines6785.7%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import '../_impl/xplat/_time_stamp.dart';
2
3extension type StreamId._(int handle) {
4 static int _nextId = 1;
5
615 factory StreamId.next() => StreamId._(_nextId++);
7
85 static StreamId? from(dynamic value) =>
915 (value is num) ? StreamId._(value.toInt()) : null;
10}
11
12/// Make [WorkerMessage] a `List` to minimize serialization overhead.
13extension type WorkerMessage(List data) implements Object {
14 /// [travelTime] is set by the receiving end and measures the time (in
15 /// microseconds) it took between the moment the message was serialized and
16 /// the moment it was deserialized.
170 int? get travelTime => data[_$traveltime];
18
1910 void unwrapTravelTime() {
2020 final ts = Timestamp.from(data[_$traveltime]);
21 if (ts != null) {
2230 data[_$traveltime] = Timestamp.now() - ts;
23 }
24 }
25}
26
27const _$traveltime = 0;
Choose Features