Joshua Haberman
ac27e3b317
Remaining fixes to make Python tests pass in google3.
3 years ago
Joshua Haberman
6a94a385f8
Factor out name differences into macros.
3 years ago
Joshua Haberman
0a858bb57a
Factor out name differences into macros.
3 years ago
Joshua Haberman
1c3d63dc25
Fixed a test by checking for the type of proto.
...
Also labeled a few tests for why we don't pass them.
3 years ago
Joshua Haberman
b38e4a4332
Fixed a few cases where we were not checking GetStrData properly.
3 years ago
Joshua Haberman
cd214fe73d
upb_TextEncode.
3 years ago
Joshua Haberman
0c541f3305
Single encode.
3 years ago
Joshua Haberman
72af9dc0cc
Switch to a single upb_Decode.
3 years ago
Joshua Haberman
499c2cc8b1
upb_extreg, upb_msg
3 years ago
Joshua Haberman
ffdcc46390
Fixed a handful of reference leaks found in a debug build of Python ( #484 )
...
* Fixed some reference leaks.
* Fixed a few reference leaks.
* Fixed a few more memory errors.
* Fixed a few more reference leaks.
* Revert minimal_test.py.
* Re-enable limited API.
* Removed some debugging and spurious changes.
* Addressed PR comments.
3 years ago
Joshua Haberman
1c955f37ce
Mass API rename and clang-reformat ( #485 )
...
* Wave 1: upb_fielddef.
* upb_fielddef itself.
* upb_oneofdef.
* upb_msgdef.
* ExtensionRange.
* upb_enumdef
* upb_enumvaldef
* upb_filedef
* upb_methoddef
* upb_servicedef
* upb_symtab
* upb_defpool_init
* upb_wellknown and upb_syntax_t
* Some constants.
* upb_status
* upb_strview
* upb_arena
* upb.h constants
* reflection
* encode
* JSON decode.
* json encode.
* msg_internal.
* Formatted with clang-format.
* Some naming fixups and comment reformatting.
* More refinements.
* A few more stragglers.
* Fixed PyObject_HEAD with semicolon. Removed TODO entries.
3 years ago
Joshua Haberman
201d2265e3
Variable rename for readability.
3 years ago
Joshua Haberman
8c256cc677
Addressed PR comments.
3 years ago
Joshua Haberman
fff8dfb035
Cleaned up reporting of initialization errors.
3 years ago
Joshua Haberman
4c005384d6
A few readability improvements.
3 years ago
Joshua Haberman
d4c0c638b8
Cleaned up ListFields sorting.
3 years ago
Joshua Haberman
d8915b3174
Cleaned up IsInitialized().
3 years ago
Joshua Haberman
3eae44bada
Refine the exception type when assigning improper attributes.
3 years ago
Joshua Haberman
1c37c488d4
Refined error message.
3 years ago
Joshua Haberman
8af637bcd2
Added extension field numbers.
3 years ago
Joshua Haberman
c75b39fc4d
Accept bytes object as field name.
3 years ago
Joshua Haberman
61d6eff5c4
Throw the proper errors for message initialization failure.
3 years ago
Joshua Haberman
4984a22e75
Fixed error message when serializing with required fields missing.
3 years ago
Joshua Haberman
3b25e6fde3
Implemented msg.<NAME>_FIELD_NUMBER attributes.
3 years ago
Joshua Haberman
4993f7a73a
Sort ListFields() results.
3 years ago
Joshua Haberman
cbe314d91e
Implemented IsInitialized(), fixing several more tests.
3 years ago
Joshua Haberman
4447d87695
Fixed tests that were missing enum type wrapper class.
3 years ago
Joshua Haberman
1be47593f0
Fixed disconnecting before Clear().
3 years ago
Joshua Haberman
e5d8d28b0f
Addressed PR comments.
3 years ago
Joshua Haberman
54b775d4f4
WIP.
3 years ago
Joshua Haberman
7260346e30
Fixed validation of extension field descriptors.
3 years ago
Joshua Haberman
0549fc0ce1
Fixed several tests.
3 years ago
Joshua Haberman
5b3447ebd3
Addressed PR comments.
3 years ago
Joshua Haberman
1437245d41
Fixed or accounted for nearly all errors in message_test.
3 years ago
Joshua Haberman
627c44be1f
Initial commit of ExtensionDict.
3 years ago
Joshua Haberman
58960e0442
Addressed PR comments.
3 years ago
Joshua Haberman
faac2d8b78
Updated some terminology and added comments.
3 years ago
Joshua Haberman
bf74b3e7fd
Added map support.
3 years ago
Joshua Haberman
aee30144cc
Fixed a couple bugs.
3 years ago
Joshua Haberman
54b605026d
Fixed a bug in ListFields().
3 years ago
Joshua Haberman
4423e917ad
All tests in the repo are passing.
3 years ago
Joshua Haberman
e079f1bce5
Patched protobuf repo sufficiently for things to work.
3 years ago
Joshua Haberman
2d4ffbf1c4
Addressed PR comments.
3 years ago
Joshua Haberman
455426ec70
Added repeated fields.
3 years ago
Joshua Haberman
c52c247c92
Addressed PR comments.
3 years ago
Joshua Haberman
32ebb4817a
Simplified AssureWritable().
3 years ago
Joshua Haberman
dc0d1b4932
Addressed PR comments.
3 years ago
Joshua Haberman
6bb891e32b
Addressed PR comments.
3 years ago
Joshua Haberman
c42beeb8d3
Addressed PR comments.
3 years ago
Joshua Haberman
eb38a2a608
Some more cleanups before sending for PR.
3 years ago