class Google::Apis::FirebaserulesV1::TestResult
Test result message containing the state of the test as well as a description and source position for test failures.
Attributes
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”]“` Corresponds to the JSON property `debugMessages` @return [Array<String>]
Position in the `Source` content including its line, column number, and an index of the `File` in the `Source` message. Used for debug purposes. Corresponds to the JSON property `errorPosition` @return [Google::Apis::FirebaserulesV1::SourcePosition]
The mapping from expression in the ruleset AST to the values they were evaluated to. Partially-nested to mirror AST structure. Note that this field is actually tracking expressions and not permission statements in contrast to the “visited_expressions” field above. Literal expressions are omitted. Corresponds to the JSON property `expressionReports` @return [Array<Google::Apis::FirebaserulesV1::ExpressionReport>]
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`. Corresponds to the JSON property `functionCalls` @return [Array<Google::Apis::FirebaserulesV1::FunctionCall>]
State of the test. Corresponds to the JSON property `state` @return [String]
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: ` “` For a detailed report of the intermediate evaluation states, see the ` expression_reports
` field Corresponds to the JSON property `visitedExpressions` @return [Array<Google::Apis::FirebaserulesV1::VisitedExpression>]
Public Class Methods
# File lib/google/apis/firebaserules_v1/classes.rb, line 640 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/firebaserules_v1/classes.rb, line 645 def update!(**args) @debug_messages = args[:debug_messages] if args.key?(:debug_messages) @error_position = args[:error_position] if args.key?(:error_position) @expression_reports = args[:expression_reports] if args.key?(:expression_reports) @function_calls = args[:function_calls] if args.key?(:function_calls) @state = args[:state] if args.key?(:state) @visited_expressions = args[:visited_expressions] if args.key?(:visited_expressions) end