Class: GeneratedCodeTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/tests/generated_code_test.rb

Instance Method Summary collapse

Instance Method Details

#test_generated_msgObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/google-protobuf-3.21.12-x86_64-linux/tests/generated_code_test.rb', line 12

def test_generated_msg
  # just test that we can instantiate the message. The purpose of this test
  # is to ensure that the output of the code generator is valid Ruby and
  # successfully creates message definitions and classes, not to test every
  # aspect of the extension (basic.rb is for that).
  A::B::C::TestMessage.new
  A::B::C::TestMessage::NestedMessage.new
  A::B::C::TestLowercaseNested::Lowercase.new
  FooBar::TestImportedMessage.new
  A::B::TestRubyPackageMessage.new
end