protobuf/ruby/tests
Jason Lunn 31a6482b85 Implement respond_to? in RubyMessage (#9677)
All synthetic methods implemented by `method_missing` are now supported by `respond_to?`.

Fixes issue #9202.

* Fix null pointer exceptions exposed by new regression tests.
* Fix clear_ on oneofs so that it is safe to call repeatedly and so that respond_to? does not depend on whether the oneof is currently cleared.
* Code cleanup: reenable more tests on JRuby.
* Align JRuby behavior with CRuby by throwing a RuntimeError when attempting to assign to a oneof.

(cherry picked from commit 8e7f936696)
2022-03-31 16:00:26 -04:00
..
basic_proto2.rb Implement respond_to? in RubyMessage (#9677) 2022-03-31 16:00:26 -04:00
basic_test_proto2.proto Fixed the oneof case for lazy wrappers. 2019-10-29 15:44:51 -07:00
basic_test.proto Fixed data loss bug in Ruby extension. 2022-01-27 17:29:12 -08:00
basic.rb Implement respond_to? in RubyMessage (#9677) 2022-03-31 16:00:26 -04:00
common_tests.rb Implement respond_to? in RubyMessage (#9677) 2022-03-31 16:00:26 -04:00
encode_decode_test.rb Ruby: rename max_recursion_depth to recursion_limit (#9486) 2022-02-09 10:21:13 -08:00
gc_test.rb Add ruby_upb_alloc using xrealloc/xfree so Ruby GC is aware of allocated memory for Arenas. (#9586) 2022-03-08 12:05:34 -05:00
generated_code_proto2_test.rb Set execute bit on files if and only if they begin with (#!). (#7347) 2020-04-01 15:28:25 -07:00
generated_code_proto2.proto Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
generated_code_test.rb Set execute bit on files if and only if they begin with (#!). (#7347) 2020-04-01 15:28:25 -07:00
generated_code.proto Add test for json_name functionality 2021-04-03 18:42:54 -07:00
multi_level_nesting_test.proto Make the new multi-level ruby tests fit the existing structure better and add them to the makefile 2021-01-14 12:26:04 -08:00
multi_level_nesting_test.rb Fix jruby support to handle messages nested more than 1 level deep 2021-01-14 12:26:04 -08:00
repeated_field_test.rb Cherry-pick to get Ruby 3.1 support in protobuf 3.20.0 (#9657) 2022-03-21 15:26:27 -07:00
stress.rb Update JRuby to leverage pure-Ruby DSL. 2021-10-03 18:25:43 -04:00
test_import_proto2.proto Adds support for proto2 syntax for Ruby gem. 2018-09-27 14:21:16 -04:00
test_import.proto Added unit test for PascalCasing package names in Ruby. 2016-07-25 15:16:23 -07:00
test_ruby_package_proto2.proto Fix Ruby module name generation when the ruby_package option is used (again) (#5794) 2019-03-02 10:38:10 -08:00
test_ruby_package.proto Fix Ruby module name generation when the ruby_package option is used (again) (#5794) 2019-03-02 10:38:10 -08:00
type_errors.rb Set execute bit on files if and only if they begin with (#!). (#7347) 2020-04-01 15:28:25 -07:00
well_known_types_test.rb Remove lib from require 2021-10-28 07:09:11 +11:00