LCOV - code coverage report

Current view
top level - src/_impl/xplat - _disconnected_channel.dart
Test
lcov.info
Date
2024-11-13
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines2219.5%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import 'dart:async';
2
3import 'package:logger/web.dart';
4import 'package:meta/meta.dart';
5
6import '../../channel.dart';
7import '../../exceptions/exception_manager.dart';
8import '../../exceptions/squadron_error.dart';
9import '../../tokens/_squadron_cancelation_token.dart';
10import '../../typedefs.dart';
11
12@internal
13final class DisconnectedChannel implements Channel {
1411 DisconnectedChannel([ExceptionManager? exceptionManager, this.logger])
150 : exceptionManager = exceptionManager ?? ExceptionManager();
16
17 @override
18 final ExceptionManager exceptionManager;
19
20 @override
21 final Logger? logger;
22
230 Never _disconnectedError() =>
2410 throw SquadronErrorExt.create('Channel is not connected');
25
260 @override
270 FutureOr<void> cancelStream(int streamId) => _disconnectedError();
28
290 @override
300 FutureOr<void> cancelToken(SquadronCancelationToken? token) =>
310 _disconnectedError();
32
330 @override
340 FutureOr<void> close() => _disconnectedError();
35
360 @override
370 Future<dynamic> sendRequest(
38 int command,
39 List args, {
40 SquadronCancelationToken? token,
41 bool inspectRequest = false,
42 bool inspectResponse = false,
43 }) =>
440 _disconnectedError();
45
460 @override
470 Stream<dynamic> sendStreamingRequest(
48 int command,
49 List args, {
50 SquadronCancelationToken? token,
51 bool inspectRequest = false,
52 bool inspectResponse = false,
53 }) =>
540 _disconnectedError();
55
560 @override
570 PlatformChannel serialize() => _disconnectedError();
58
590 @override
600 Channel share() => _disconnectedError();
61}
Choose Features