Class: Google::Apis::FirebaserulesV1::TestResult
- Inherits:
-
Object
- Object
- Google::Apis::FirebaserulesV1::TestResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firebaserules_v1/classes.rb,
generated/google/apis/firebaserules_v1/representations.rb,
generated/google/apis/firebaserules_v1/representations.rb
Overview
Test result message containing the state of the test as well as a description and source position for test failures.
Instance Attribute Summary collapse
-
#debug_messages ⇒ Array<String>
Debug messages related to test execution issues encountered during evaluation.
-
#error_position ⇒ Google::Apis::FirebaserulesV1::SourcePosition
Position in the
Source
content including its line, column number, and an index of theFile
in theSource
message. -
#function_calls ⇒ Array<Google::Apis::FirebaserulesV1::FunctionCall>
The set of function calls made to service-defined methods.
-
#state ⇒ String
State of the test.
-
#visited_expressions ⇒ Array<Google::Apis::FirebaserulesV1::VisitedExpression>
The set of visited expressions for a given test.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestResult
constructor
A new instance of TestResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TestResult
Returns a new instance of TestResult
588 589 590 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 588 def initialize(**args) update!(**args) end |
Instance Attribute Details
#debug_messages ⇒ Array<String>
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
561 562 563 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 561 def @debug_messages end |
#error_position ⇒ Google::Apis::FirebaserulesV1::SourcePosition
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
567 568 569 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 567 def error_position @error_position end |
#function_calls ⇒ Array<Google::Apis::FirebaserulesV1::FunctionCall>
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
575 576 577 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 575 def function_calls @function_calls end |
#state ⇒ String
State of the test.
Corresponds to the JSON property state
580 581 582 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 580 def state @state end |
#visited_expressions ⇒ Array<Google::Apis::FirebaserulesV1::VisitedExpression>
The set of visited expressions for a given test. This returns positions
and evaluation results of all visited expressions.
Corresponds to the JSON property visitedExpressions
586 587 588 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 586 def visited_expressions @visited_expressions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
593 594 595 596 597 598 599 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 593 def update!(**args) @debug_messages = args[:debug_messages] if args.key?(:debug_messages) @error_position = args[:error_position] if args.key?(:error_position) @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 |