Class: Suture::Value::TestPlan

Inherits:
Object
  • Object
show all
Defined in:
lib/suture/value/test_plan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_subjectObject

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_limitObject

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

#comparatorObject

Returns the value of attribute comparator.



3
4
5
# File 'lib/suture/value/test_plan.rb', line 3

def comparator
  @comparator
end

#database_pathObject

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_limitObject

Returns the value of attribute error_message_limit.



3
4
5
# File 'lib/suture/value/test_plan.rb', line 3

def error_message_limit
  @error_message_limit
end

#expected_error_typesObject

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_fastObject

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

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/suture/value/test_plan.rb', line 3

def name
  @name
end

#on_subject_errorObject

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_seedObject

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

#subjectObject

Returns the value of attribute subject.



3
4
5
# File 'lib/suture/value/test_plan.rb', line 3

def subject
  @subject
end

#time_limitObject

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_onlyObject

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