google_api_firebase_rules v0.2.0 GoogleApi.FirebaseRules.V1.Model.FunctionMock View Source
Mock function definition. Mocks must refer to a function declared by the target service. The type of the function args and result will be inferred at test time. If either the arg or result values are not compatible with function type declaration, the request will be considered invalid. More than one `FunctionMock` may be provided for a given function name so long as the `Arg` matchers are distinct. There may be only one function for a given overload where all `Arg` values are `Arg.any_value`.
Attributes
- args ([Arg]): The list of `Arg` values to match. The order in which the arguments are provided is the order in which they must appear in the function invocation. Defaults to:
null
. - function (String.t): The name of the function. The function name must match one provided by a service declaration. Defaults to:
null
. - result (Result): The mock result of the function call. Defaults to:
null
.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields
Link to this section Types
Link to this type
t()
View Source
t() :: %GoogleApi.FirebaseRules.V1.Model.FunctionMock{ args: [GoogleApi.FirebaseRules.V1.Model.Arg.t()], function: any(), result: GoogleApi.FirebaseRules.V1.Model.Result.t() }
Link to this section Functions
Unwrap a decoded JSON object into its complex fields.