Class: TdlSimTest::TdlNumTestUnit

Inherits:
TdlBaseTestUnit show all
Defined in:
lib/tdl/exlib/sdlmodule_sim.bak.rb

Instance Attribute Summary

Attributes inherited from TdlBaseTestUnit

#active, #value_default

Instance Method Summary collapse

Methods inherited from TdlBaseTestUnit

check_same_test_name, echo_prj_test_list, load_test_unit_hash, test_unit_hash, test_unit_hash=, top_sim_list, top_sim_list=, #use_default?, #value

Constructor Details

#initialize(name: 'TdlNumTestUnit-0', value_default: nil, sim_target_hash: nil) ⇒ TdlNumTestUnit

Returns a new instance of TdlNumTestUnit.



188
189
190
191
192
193
194
# File 'lib/tdl/exlib/sdlmodule_sim.bak.rb', line 188

def initialize(name: 'TdlNumTestUnit-0',value_default: nil, sim_target_hash: nil)
    super name
    @name = name 
    @value_default = value_default
    @sim_target = sim_target_hash[name]
    @active = true if @sim_target
end

Instance Method Details

#echo_infoObject



201
202
203
# File 'lib/tdl/exlib/sdlmodule_sim.bak.rb', line 201

def echo_info 
    echo_info_array.join(" ## ")
end

#echo_info_arrayObject



196
197
198
199
# File 'lib/tdl/exlib/sdlmodule_sim.bak.rb', line 196

def echo_info_array
    # test type :: test name :: test value :: test default ? :: tset others
    ['NUM-UNIT',@name,active_symb,value().to_s, use_default?().to_s, "default(#{@value_default})" ] 
end