LCOV - code coverage report

Current view
top level - src/_impl/xplat - _token_id.dart
Test
lcov.info
Date
2025-03-26
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 'package:meta/meta.dart';
2
3import '_platform.dart';
4
5/// Singleton class used to generate unique IDs for cancelation tokens.
6///
7/// The class implements a simple counter that is incremented each time a new
8/// ID is requested. Workers should forward the cancelation token they received
9/// when calling other workers.
10@internal
11class TokenId {
120 TokenId._();
13
14 static int _id = 0;
15
16 /// Provides the next ID.
178 static String next() => '${++_id}@$threadId';
18}
Choose Features