LCOV - code coverage report

Current view
top level - src/annotations - squadron_method.dart
Test
lcov.info
Date
2024-11-13
Legend
Lines
hit
not hit
Branches
taken
not taken
# not executed
HitTotalCoverage
Lines11100.0%
Functions00-
Branches00-
Each row represents a line of source code
LineBranchHitsSource code
1import '../channel.dart';
2
3/// Annotation for service methods to be exposed by workers.
4class SquadronMethod {
511 const SquadronMethod(
6 {this.inspectRequest = false, this.inspectResponse = false});
7
8 /// Indicates whether the contents of the incoming message should be inspected
9 /// by Squadron before sending the request to the worker. By default, incoming
10 /// messages are not inspected except for the startup message. The purpose of
11 /// message inspection is to detect non-base-type data that require transfer of
12 /// ownership to the target worker. E.g. if the request data include a [Channel]
13 /// object, [inspectRequest] must be set to `true`.
14 final bool inspectRequest;
15
16 /// Same as [inspectRequest] but for outgoing messages (response produced by the
17 /// worker).
18 final bool inspectResponse;
19}
20
21const squadronMethod = SquadronMethod();
Choose Features