Home
last modified time | relevance | path

Searched refs:FrozenErrorType (Results 1 – 2 of 2) sorted by relevance

/third_party/protobuf/ruby/tests/
Dcommon_tests.rb13FrozenErrorType = Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5') ? RuntimeError : Frozen… constant
215 assert_raise(FrozenErrorType) { m.optional_string.encode!('ASCII-8BIT') }
1741 frozen_error = assert_raise(FrozenErrorType) { m.optional_int32 = 20 }
1746 assert_raise(FrozenErrorType) { m.optional_int64 = 2 }
1747 assert_raise(FrozenErrorType) { m.optional_uint32 = 3 }
1748 assert_raise(FrozenErrorType) { m.optional_uint64 = 4 }
1749 assert_raise(FrozenErrorType) { m.optional_bool = true }
1750 assert_raise(FrozenErrorType) { m.optional_float = 6.0 }
1751 assert_raise(FrozenErrorType) { m.optional_double = 7.0 }
1752 assert_raise(FrozenErrorType) { m.optional_string = '8' }
[all …]
Dbasic.rb524FrozenErrorType = Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5') ? RuntimeError : Frozen… constant in BasicTest.MessageContainerTest
537 assert_raise(FrozenErrorType) { m.map_string_int32['foo'] = 1 }
538 assert_raise(FrozenErrorType) { m.map_string_msg['bar'] = proto_module::TestMessage2.new }
539 assert_raise(FrozenErrorType) { m.map_string_int32.delete('a') }
540 assert_raise(FrozenErrorType) { m.map_string_int32.clear }