LCOV - code coverage report

Current view
top level - src/_impl/xplat - _token_id.dart
Test
lcov.info
Date
2024-11-13
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines1250.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import '../../typedefs.dart';
2
3/// Singleton class used to generate unique IDs for cancelation tokens.
4///
5/// The class implements a simple counter that is incremented each time a new
6/// ID is requested. Workers should forward the cancelation token they received
7/// when calling other workers.
8class TokenId {
90 TokenId._();
10
11 static int _id = 0;
12
13 /// Provides the next ID.
1410 static String next() => '${++_id}@$threadId';
15}
Choose Features