PatrolAppService class

Implements a stateful HTTP service for querying and executing Dart tests.

This is an internal class and you don't want to use it. It's public so that the generated code can access it.

Constructors

PatrolAppService({required DartGroupEntry topLevelDartTestGroup})
Creates a new PatrolAppService.

Properties

hashCode int
The hash code for this object.
no setterinherited
port int
Port the server will use to listen for incoming HTTP traffic.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
testExecutionCompleted Future<_TestExecutionResult>
A future that completes when the Dart test file (whose execution was requested by the native side) completes.
no setter
testExecutionRequested Future<String>
A future that completes with the name of the Dart test file that was requested to execute by the native side.
no setter
topLevelDartTestGroup → DartGroupEntry
The ambient test group that wraps all the other groups and tests in the bundled Dart test file.
final

Methods

handle(Request request) FutureOr<Response>
inherited
listDartTests() Future<ListDartTestsResponse>
markDartTestAsCompleted({required String dartFileName, required bool passed, required String? details}) Future<void>
Marks dartFileName as completed with the given passed status.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runDartTest(RunDartTestRequest request) Future<RunDartTestResponse>
toString() String
A string representation of this object.
inherited
waitForExecutionRequest(String dartTest) Future<bool>
Returns when the native side requests execution of a Dart test. If the native side requsted execution of dartTest, returns true. Otherwise returns false.

Operators

operator ==(Object other) bool
The equality operator.
inherited