1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/psych
Nobuyoshi Nakada 698dde525a [ruby/psych] Suppress uninitialized instance variable warnings
In verbose mode, `test_delegator` in `test/psych/visitors/test_yaml_tree.rb` shows following warning.

https://travis-ci.org/ruby/psych/jobs/562435717#L268
```
/home/travis/build/ruby/psych/test/psych/visitors/test_yaml_tree.rb:10: warning: instance variable @obj not initialized
```

This is because `Psych.load` bypasses #initialize with the #init_with method.

https://github.com/ruby/psych/commit/f99523388f
2019-07-25 07:52:17 +09:00
..
handlers
json
nodes
visitors [ruby/psych] Suppress uninitialized instance variable warnings 2019-07-25 07:52:17 +09:00
helper.rb
test_alias_and_anchor.rb
test_array.rb
test_boolean.rb
test_class.rb
test_coder.rb
test_date_time.rb
test_deprecated.rb
test_document.rb
test_emitter.rb
test_encoding.rb
test_exception.rb
test_hash.rb [ruby/psych] Deduplicate hash keys if they're strings 2019-07-25 07:52:16 +09:00
test_json_tree.rb
test_marshalable.rb
test_merge_keys.rb
test_nil.rb
test_null.rb
test_numeric.rb
test_object.rb
test_object_references.rb
test_omap.rb
test_parser.rb
test_psych.rb
test_safe_load.rb
test_scalar.rb
test_scalar_scanner.rb Do not allocate a string to check if a scalar is an integer 2019-06-25 15:56:20 +09:00
test_serialize_subclasses.rb
test_set.rb
test_stream.rb
test_string.rb
test_struct.rb
test_symbol.rb
test_tainted.rb
test_tree_builder.rb
test_yaml.rb
test_yaml_special_cases.rb
test_yamldbm.rb
test_yamlstore.rb