Class: Gravitext::Concurrent::BasicTestFactory
- Inherits:
-
Object
- Object
- Gravitext::Concurrent::BasicTestFactory
- Includes:
- TestFactory
- Defined in:
- lib/gravitext-util/concurrent.rb
Instance Method Summary collapse
- #create_test_runnable(seed) ⇒ Object
-
#initialize(test_class) ⇒ BasicTestFactory
constructor
A new instance of BasicTestFactory.
- #name ⇒ Object
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 |
#name ⇒ Object
99 100 101 |
# File 'lib/gravitext-util/concurrent.rb', line 99 def name @test_class.name end |