FunctionsTestClient class
In-process test client returned by runFunctionsTest.
Invokes registered function handlers directly without a network hop, using the same Request/Response types as the production Shelf handler.
This is the unit/integration-test counterpart to EmulatorHelper +
FunctionsHttpClient used in E2E tests.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
String name, {dynamic data, String? idToken, Map< String, String> ? extraHeaders}) → Future<Response> -
Invokes an
onCalloronCallWithDatafunction byname. -
dispose(
) → void - Removes all registered functions from this instance.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseCallableResponse(
Response response) → Future -
Parses the
resultfield from a successful callable Response body. -
request(
String name, Request req) → Future< Response> -
Invokes an
onRequestfunction bynamewith a raw Shelf Request. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited