Class: Datum::Container
- Inherits:
-
Object
- Object
- Datum::Container
- Defined in:
- lib/datum/container.rb
Overview
Container references are stored in Datum::containers
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
(also: #length, #size, #test_count)
readonly
The total number of test cases generated for the data method.
-
#data ⇒ Hash
readonly
A Hash of data elements, datum structs for the test case.
-
#data_method_name ⇒ String
readonly
The name of the data test method.
-
#test_instance ⇒ ActiveSupport::TestCase
readonly
The ActiveSupport::TestCase instance of the data test.
Instance Attribute Details
#count ⇒ Fixnum (readonly) Also known as: length, size, test_count
The total number of test cases generated for the data method
26 |
# File 'lib/datum/container.rb', line 26 def count; @loaded_data.count + @invoked_data.count; end |
#data ⇒ Hash (readonly)
A Hash of data elements, datum structs for the test case
31 |
# File 'lib/datum/container.rb', line 31 def data; @loaded_data.merge(@invoked_data); end |
#data_method_name ⇒ String (readonly)
The name of the data test method
16 17 18 |
# File 'lib/datum/container.rb', line 16 def data_method_name @data_method_name end |
#test_instance ⇒ ActiveSupport::TestCase (readonly)
The ActiveSupport::TestCase instance of the data test
21 22 23 |
# File 'lib/datum/container.rb', line 21 def test_instance @test_instance end |