Class: Datum::Container

Inherits:
Object
  • Object
show all
Defined in:
lib/datum/container.rb

Overview

Container references are stored in Datum::containers

Instance Attribute Summary collapse

Instance Attribute Details

#countFixnum (readonly) Also known as: length, size, test_count

The total number of test cases generated for the data method

Returns:

  • (Fixnum)


26
# File 'lib/datum/container.rb', line 26

def count; @loaded_data.count + @invoked_data.count; end

#dataHash (readonly)

A Hash of data elements, datum structs for the test case

Returns:

  • (Hash)


31
# File 'lib/datum/container.rb', line 31

def data; @loaded_data.merge(@invoked_data); end

#data_method_nameString (readonly)

The name of the data test method

Returns:

  • (String)


16
17
18
# File 'lib/datum/container.rb', line 16

def data_method_name
  @data_method_name
end

#test_instanceActiveSupport::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