Class: Suture::Value::TestPlan
- Inherits:
-
Object
- Object
- Suture::Value::TestPlan
- Defined in:
- lib/suture/value/test_plan.rb
Instance Attribute Summary collapse
-
#after_subject ⇒ Object
Returns the value of attribute after_subject.
-
#call_limit ⇒ Object
Returns the value of attribute call_limit.
-
#comparator ⇒ Object
Returns the value of attribute comparator.
-
#database_path ⇒ Object
Returns the value of attribute database_path.
-
#error_message_limit ⇒ Object
Returns the value of attribute error_message_limit.
-
#expected_error_types ⇒ Object
Returns the value of attribute expected_error_types.
-
#fail_fast ⇒ Object
Returns the value of attribute fail_fast.
-
#name ⇒ Object
Returns the value of attribute name.
-
#on_subject_error ⇒ Object
Returns the value of attribute on_subject_error.
-
#random_seed ⇒ Object
Returns the value of attribute random_seed.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#time_limit ⇒ Object
Returns the value of attribute time_limit.
-
#verify_only ⇒ Object
Returns the value of attribute verify_only.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ TestPlan
constructor
A new instance of TestPlan.
Constructor Details
#initialize(attrs = {}) ⇒ TestPlan
Returns a new instance of TestPlan.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/suture/value/test_plan.rb', line 9 def initialize(attrs = {}) assign_simple_ivars!(attrs, :name, :subject, :comparator, :database_path, :after_subject, :on_subject_error) assign_integral_ivars!(attrs, :verify_only, :call_limit, :time_limit, :error_message_limit) @fail_fast = !!attrs[:fail_fast] @expected_error_types = attrs[:expected_error_types] || [] @random_seed = determine_random_seed(attrs) end |
Instance Attribute Details
#after_subject ⇒ Object
Returns the value of attribute after_subject.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def after_subject @after_subject end |
#call_limit ⇒ Object
Returns the value of attribute call_limit.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def call_limit @call_limit end |
#comparator ⇒ Object
Returns the value of attribute comparator.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def comparator @comparator end |
#database_path ⇒ Object
Returns the value of attribute database_path.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def database_path @database_path end |
#error_message_limit ⇒ Object
Returns the value of attribute error_message_limit.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def @error_message_limit end |
#expected_error_types ⇒ Object
Returns the value of attribute expected_error_types.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def expected_error_types @expected_error_types end |
#fail_fast ⇒ Object
Returns the value of attribute fail_fast.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def fail_fast @fail_fast end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def name @name end |
#on_subject_error ⇒ Object
Returns the value of attribute on_subject_error.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def on_subject_error @on_subject_error end |
#random_seed ⇒ Object
Returns the value of attribute random_seed.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def random_seed @random_seed end |
#subject ⇒ Object
Returns the value of attribute subject.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def subject @subject end |
#time_limit ⇒ Object
Returns the value of attribute time_limit.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def time_limit @time_limit end |
#verify_only ⇒ Object
Returns the value of attribute verify_only.
3 4 5 |
# File 'lib/suture/value/test_plan.rb', line 3 def verify_only @verify_only end |