Home
last modified time | relevance | path

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

/external/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py317 def _CheckValueAndType(value, expected_value, expected_type): function
330 _CheckValueAndType(msg.optional_int32, 0, int)
331 _CheckValueAndType(msg.optional_uint64, 0, (int64, int))
332 _CheckValueAndType(msg.optional_float, 0, (float, int))
333 _CheckValueAndType(msg.optional_double, 0, (float, int))
334 _CheckValueAndType(msg.optional_bool, False, bool)
335 _CheckValueAndType(msg.optional_string, u'', unicode_type)
336 _CheckValueAndType(msg.optional_bytes, b'', bytes)
337 _CheckValueAndType(msg.optional_nested_enum, msg.FOO, int)