google_api_firebase_rules v0.10.0 GoogleApi.FirebaseRules.V1.Model.TestResult View Source
Test result message containing the state of the test as well as a description and source position for test failures.
Attributes
debugMessages
(type:list(String.t)
, default:nil
) - Debug messages related to test execution issues encountered during evaluation.Debug messages may be related to too many or too few invocations of function mocks or to runtime errors that occur during evaluation.
For example:
Unable to read variable [name: "resource"]
errorPosition
(type:GoogleApi.FirebaseRules.V1.Model.SourcePosition.t
, default:nil
) - Position in theSource
orRuleset
where the principle runtime error occurs.Evaluation of an expression may result in an error. Rules are deny by default, so a
DENY
expectation when an error is generated is valid. When there is aDENY
with an error, theSourcePosition
is returned.E.g.
error_position { line: 19 column: 37 }
functionCalls
(type:list(GoogleApi.FirebaseRules.V1.Model.FunctionCall.t)
, default:nil
) - The set of function calls made to service-defined methods.Function calls are included in the order in which they are encountered during evaluation, are provided for both mocked and unmocked functions, and included on the response regardless of the test
state
.state
(type:String.t
, default:nil
) - State of the test.visitedExpressions
(type:list(GoogleApi.FirebaseRules.V1.Model.VisitedExpression.t)
, default:nil
) - The set of visited permission expressions for a given test. This returns the positions and evaluation results of all visited permission expressions which were relevant to the test case, e.g.match /path { allow read if: <expr> }
For a detailed report of the intermediate evaluation states, see the
expression_reports
field
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
t()
View Sourcet() :: %GoogleApi.FirebaseRules.V1.Model.TestResult{ debugMessages: [String.t()], errorPosition: GoogleApi.FirebaseRules.V1.Model.SourcePosition.t(), functionCalls: [GoogleApi.FirebaseRules.V1.Model.FunctionCall.t()], state: String.t(), visitedExpressions: [GoogleApi.FirebaseRules.V1.Model.VisitedExpression.t()] }
Link to this section Functions
Unwrap a decoded JSON object into its complex fields.