diff options
Diffstat (limited to 'addons/gut/doubler.gd')
| -rw-r--r-- | addons/gut/doubler.gd | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/addons/gut/doubler.gd b/addons/gut/doubler.gd index 78becdd..ce865e5 100644 --- a/addons/gut/doubler.gd +++ b/addons/gut/doubler.gd @@ -61,13 +61,6 @@ class ScriptMethods: '_get_minimum_size', # Nonexistent function _get_minimum_size ] - # These methods should not be included in the double. - var _skip = [ - # There is an init in the template. There is also no real reason - # to include this method since it will always be called, it has no - # return value, and you cannot prevent super from being called. - '_init' - ] var built_ins = [] var local_methods = [] @@ -77,8 +70,6 @@ class ScriptMethods: return _blacklist.find(method_meta.name) != -1 func _add_name_if_does_not_have(method_name): - if(_skip.has(method_name)): - return false var should_add = _method_names.find(method_name) == -1 if(should_add): _method_names.append(method_name) @@ -394,7 +385,7 @@ func _stub_to_call_super(obj_info, method_name): _stubber.add_stub(params) -func _get_base_script_text(obj_info, override_path): +func _get_base_script_text(obj_info, override_path, script_methods): var path = obj_info.get_path() if(override_path != null): path = override_path @@ -431,8 +422,8 @@ func _get_base_script_text(obj_info, override_path): func _write_file(obj_info, dest_path, override_path=null): - var base_script = _get_base_script_text(obj_info, override_path) var script_methods = _get_methods(obj_info) + var base_script = _get_base_script_text(obj_info, override_path, script_methods) var super_name = "" var path = "" @@ -757,4 +748,4 @@ func set_make_files(make_files): set_output_dir(_output_dir) func get_method_maker(): - return _method_maker
\ No newline at end of file + return _method_maker |
