LCOV - code coverage report

Current view
top level - src/exceptions - _well_known_exceptions.dart
Test
lcov.info
Date
2024-11-13
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines66100.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import 'dart:async';
2
3import 'package:cancelation_token/cancelation_token.dart';
4import 'package:meta/meta.dart';
5
6import 'squadron_canceled_exception.dart';
7import 'squadron_exception.dart';
8import 'squadron_timeout_exception.dart';
9
10const $squadronErrorType = '\$sqdrn';
11const $workerExceptionType = '\$wrkr';
12const $canceledExceptionType = '\$cncld';
13const $canceledExceptionsType = '\$cncld*';
14const $timeoutExceptionType = '\$tmt';
15
16const $reservedExceptionTypeIds = {
17 $squadronErrorType,
18 $workerExceptionType,
19 $canceledExceptionType,
20 $canceledExceptionsType,
21 $timeoutExceptionType,
22};
23
24@internal
25extension CanceledConversionExt on CanceledException {
262 SquadronException toSquadronException(
27 [String? tokenId, StackTrace? stackTrace]) =>
282 SquadronCanceledException.from(
29 tokenId ?? '',
30 this,
31 stackTrace,
32 );
33}
34
35@internal
36extension TimeoutConversionExt on TimeoutException {
372 SquadronException toSquadronException(
38 [String? tokenId, StackTrace? stackTrace]) =>
392 SquadronTimeoutException(
40 tokenId ?? '',
412 message ?? 'Operation timeout',
422 duration,
43 stackTrace,
44 );
45}
Choose Features