LCOV - code coverage report

Current view
top level - src/_impl/xplat - _time_stamp.dart
Test
lcov.info
Date
2026-03-04
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines99100.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1extension type Timestamp._(int _microseconds) {
244 factory Timestamp.now() => Timestamp._(DateTime.now().microsecondsSinceEpoch);
3
420 static Timestamp? from(dynamic value) => (value is num)
520 ? Timestamp._(value.toInt())
610 : ((value is DateTime)
720 ? Timestamp._(value.microsecondsSinceEpoch)
8 : null);
9
1020 int operator -(Timestamp other) => _microseconds - other._microseconds;
11
126 Duration elapsedSince(Timestamp other) =>
1312 Duration(microseconds: this - other);
14
1520 DateTime toDateTime() => DateTime.fromMicrosecondsSinceEpoch(_microseconds);
16}
Choose Features