LCOV - code coverage report

Current view
top level - src/_impl/xplat - _forward_completer.dart
Test
lcov.info
Date
2024-11-13
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines55100.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import 'dart:async';
2
3import '../../exceptions/squadron_exception.dart';
4
5class ForwardCompleter<T> {
6 final _res = Completer<T>();
7
832 Future<T> get future => _res.future;
9
108 void success(T data) {
1140 if (!_res.isCompleted) _res.complete(data);
12 }
13
142 void failure(SquadronException ex) {
1511 if (!_res.isCompleted) _res.completeError(ex);
16 }
17}
Choose Features