Class: Verity::Test
- Inherits:
-
Data
- Object
- Data
- Verity::Test
- Defined in:
- lib/verity.rb
Overview
Public: Immutable value object representing a single registered test case.
fingerprint - String content-based identifier for the test body. description - String human-readable name supplied to the ‘test` DSL. tags - Array of Symbols applied directly to the test. timeout - Numeric seconds (or nil); enforced by Runner with stdlib Timeout. requires - Array of Symbols naming shared preconditions. resources - Hash of keyword resources forwarded from `test`. file - String absolute path of the source file. line - Integer source line number. fn - Proc (block) containing the test body. group_path - Frozen Array of Strings representing nested group titles. inherited_group_tags - Frozen Array of Symbols from enclosing group tags. group_scopes - Frozen Array of GroupScope (enclosing groups, outer first).
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#fingerprint ⇒ Object
readonly
Returns the value of attribute fingerprint.
-
#fn ⇒ Object
readonly
Returns the value of attribute fn.
-
#group_path ⇒ Object
readonly
Returns the value of attribute group_path.
-
#group_scopes ⇒ Object
readonly
Returns the value of attribute group_scopes.
-
#inherited_group_tags ⇒ Object
readonly
Returns the value of attribute inherited_group_tags.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#requires ⇒ Object
readonly
Returns the value of attribute requires.
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description
36 37 38 |
# File 'lib/verity.rb', line 36 def description @description end |
#file ⇒ Object (readonly)
Returns the value of attribute file
36 37 38 |
# File 'lib/verity.rb', line 36 def file @file end |
#fingerprint ⇒ Object (readonly)
Returns the value of attribute fingerprint
36 37 38 |
# File 'lib/verity.rb', line 36 def fingerprint @fingerprint end |
#fn ⇒ Object (readonly)
Returns the value of attribute fn
36 37 38 |
# File 'lib/verity.rb', line 36 def fn @fn end |
#group_path ⇒ Object (readonly)
Returns the value of attribute group_path
36 37 38 |
# File 'lib/verity.rb', line 36 def group_path @group_path end |
#group_scopes ⇒ Object (readonly)
Returns the value of attribute group_scopes
36 37 38 |
# File 'lib/verity.rb', line 36 def group_scopes @group_scopes end |
#inherited_group_tags ⇒ Object (readonly)
Returns the value of attribute inherited_group_tags
36 37 38 |
# File 'lib/verity.rb', line 36 def @inherited_group_tags end |
#line ⇒ Object (readonly)
Returns the value of attribute line
36 37 38 |
# File 'lib/verity.rb', line 36 def line @line end |
#requires ⇒ Object (readonly)
Returns the value of attribute requires
36 37 38 |
# File 'lib/verity.rb', line 36 def requires @requires end |
#resources ⇒ Object (readonly)
Returns the value of attribute resources
36 37 38 |
# File 'lib/verity.rb', line 36 def resources @resources end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags
36 37 38 |
# File 'lib/verity.rb', line 36 def @tags end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout
36 37 38 |
# File 'lib/verity.rb', line 36 def timeout @timeout end |