Class: Gravitext::Concurrent::BasicTestFactory

Inherits:
Object
  • Object
show all
Includes:
TestFactory
Defined in:
lib/gravitext-util/concurrent.rb

Instance Method Summary collapse

Constructor Details

#initialize(test_class) ⇒ BasicTestFactory

Returns a new instance of BasicTestFactory.



95
96
97
# File 'lib/gravitext-util/concurrent.rb', line 95

def initialize( test_class )
  @test_class = test_class
end

Instance Method Details

#create_test_runnable(seed) ⇒ Object



103
104
105
# File 'lib/gravitext-util/concurrent.rb', line 103

def create_test_runnable( seed )
  @test_class.new( Gravitext::Util::FastRandom.new( seed ) )
end

#nameObject



99
100
101
# File 'lib/gravitext-util/concurrent.rb', line 99

def name
  @test_class.name
end