Lines Matching refs:value

88       # Explicitly setting to a non-zero value *does* cause serialization.
174 assert_equal e.message, "Expected Hash object as initializer value for map field 'map_string_int32' (given String)."
179 assert_equal e.message, "Expected array as initializer value for repeated field 'repeated_uint32' (given String)."
206 m.map_string_msg["e"] = TestMessage.new # wrong value type
257 assert_equal 2.0, m.map_double[0].value
258 assert_equal 4.0, m.map_float[0].value
259 assert_equal 3, m.map_int32[0].value
260 assert_equal 4, m.map_int64[0].value
261 assert_equal 5, m.map_uint32[0].value
262 assert_equal 6, m.map_uint64[0].value
263 assert_equal true, m.map_bool[0].value
264 assert_equal 'str', m.map_string[0].value
265 assert_equal 'fun', m.map_bytes[0].value
269 map_double: {0 => Google::Protobuf::DoubleValue.new(value: 2.0)},
270 map_float: {0 => Google::Protobuf::FloatValue.new(value: 4.0)},
271 map_int32: {0 => Google::Protobuf::Int32Value.new(value: 3)},
272 map_int64: {0 => Google::Protobuf::Int64Value.new(value: 4)},
273 map_uint32: {0 => Google::Protobuf::UInt32Value.new(value: 5)},
274 map_uint64: {0 => Google::Protobuf::UInt64Value.new(value: 6)},
275 map_bool: {0 => Google::Protobuf::BoolValue.new(value: true)},
276 map_string: {0 => Google::Protobuf::StringValue.new(value: 'str')},
277 map_bytes: {0 => Google::Protobuf::BytesValue.new(value: 'fun')},
299 assert_equal 0.0, m.map_double[0].value
300 assert_equal 0.0, m.map_float[0].value
301 assert_equal 0, m.map_int32[0].value
302 assert_equal 0, m.map_int64[0].value
303 assert_equal 0, m.map_uint32[0].value
304 assert_equal 0, m.map_uint64[0].value
305 assert_equal false, m.map_bool[0].value
306 assert_equal '', m.map_string[0].value
307 assert_equal '', m.map_bytes[0].value
311 map_double: {0 => Google::Protobuf::DoubleValue.new(value: 0.0)},
312 map_float: {0 => Google::Protobuf::FloatValue.new(value: 0.0)},
313 map_int32: {0 => Google::Protobuf::Int32Value.new(value: 0)},
314 map_int64: {0 => Google::Protobuf::Int64Value.new(value: 0)},
315 map_uint32: {0 => Google::Protobuf::UInt32Value.new(value: 0)},
316 map_uint64: {0 => Google::Protobuf::UInt64Value.new(value: 0)},
317 map_bool: {0 => Google::Protobuf::BoolValue.new(value: false)},
318 map_string: {0 => Google::Protobuf::StringValue.new(value: '')},
319 map_bytes: {0 => Google::Protobuf::BytesValue.new(value: '')},
341 assert_equal 0.0, m.map_double[0].value
342 assert_equal 0.0, m.map_float[0].value
343 assert_equal 0, m.map_int32[0].value
344 assert_equal 0, m.map_int64[0].value
345 assert_equal 0, m.map_uint32[0].value
346 assert_equal 0, m.map_uint64[0].value
347 assert_equal false, m.map_bool[0].value
348 assert_equal '', m.map_string[0].value
349 assert_equal '', m.map_bytes[0].value
405 m3.map_string_int32.map { |msg| kv[msg.key] = msg.value }
409 m3.map_string_msg.map { |msg| kv[msg.key] = msg.value }