Bernardo Bruning
7f3f0a24f5
Change size of buffer json
3 years ago
Bernardo Bruning
4a3a7d9777
Introduce tests to encode and decode json
3 years ago
Joshua Haberman
dbec5d70cd
Fixed UBSAN error: NULL + 0.
3 years ago
Joshua Haberman
fb3b783353
WIP.
3 years ago
Bernardo Bruning
6475a96505
Ensures that the seconds are always positive
3 years ago
Bernardo Bruning
698ac476de
Introduces safe mod to not produce invalid mod and fix precision of days
3 years ago
Joshua Haberman
5dfbc684dd
WIP.
3 years ago
Joshua Haberman
85e5c76cb7
Merge pull request #495 from haberman/gtest
...
Migrated upb's C tests to gtest, and deleted homegrown testing framework
3 years ago
Joshua Haberman
c5f6ca1122
Added extra braces to silence compiler warning.
3 years ago
Joshua Haberman
0d0f535c9f
Remove old testing framework.
3 years ago
Joshua Haberman
94ce6a35c2
test_table
3 years ago
Joshua Haberman
738b1d6d9c
test_cpp
3 years ago
Joshua Haberman
4e97915fde
Converted test_generated_code.c to gtest.
3 years ago
Joshua Haberman
77505575b4
Merge pull request #494 from haberman/py37
...
Fixed the build for Python 3.7
3 years ago
Joshua Haberman
62af892ddf
Fixed the build for Python 3.7.
3 years ago
Joshua Haberman
7bb0cdcfc8
Merge pull request #493 from haberman/python-copytoproto-typecheck
...
Fixed a test by checking for the type of proto.
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
acabedc1ea
Merge pull request #492 from haberman/dtoa
...
Ported protobuf's dtoa() function for text format and JSON.
3 years ago
Joshua Haberman
06d6f5c91f
Added test for -0.
3 years ago
Joshua Haberman
878e4f7457
Merge pull request #491 from haberman/python-enummap
...
Fixed a bug in the enum value map, fixing a few unit tests.
3 years ago
Joshua Haberman
bc7b5dcadf
Ported protobuf's dtoa() function for text format and JSON.
3 years ago
Joshua Haberman
bb95a18631
Fixed a bug in the enum value map, fixing a few unit tests.
3 years ago
Joshua Haberman
43e36bb49f
Merge pull request #490 from haberman/python-stringargcheck
...
Fixed unit test by more rigorously testing argument type
3 years ago
Joshua Haberman
cfdd016bed
PyUpb_CheckStrData() -> PyUpb_VerifyStrData()
3 years ago
Joshua Haberman
4d8af50450
Merge pull request #489 from haberman/rename3
...
Renamed upb_FieldType_* -> kUpb_FieldType_*
3 years ago
Joshua Haberman
606308c639
Added back missing underscore.
3 years ago
Joshua Haberman
b38e4a4332
Fixed a few cases where we were not checking GetStrData properly.
3 years ago
Joshua Haberman
e613af9e87
Fixed test by checking string argument properly.
3 years ago
Joshua Haberman
75b6291e40
Renamed upb_FieldType_* -> kUpb_FieldType_*
3 years ago
Joshua Haberman
3e55eea0e1
Merge pull request #487 from haberman/python-fielddesc
...
Fixed FieldDescriptor test
3 years ago
Joshua Haberman
cb8c159e6d
Merge branch 'main' into python-fielddesc
3 years ago
Joshua Haberman
2bdbfc33e5
Addressed PR comments.
3 years ago
Joshua Haberman
edf4ff46f7
Merge pull request #488 from haberman/python-findmethod
...
Fixed Python test by implementing FindMethodByName
3 years ago
Joshua Haberman
392531c14f
Fixed test by implementing FindMethodByName().
3 years ago
Joshua Haberman
3eeea895dd
Fixed FieldDescriptor test.
3 years ago
Joshua Haberman
c80f133eee
Merge pull request #486 from haberman/rename2
...
Some more renaming
3 years ago
Joshua Haberman
a8d49d1245
Fixed ASCII art.
3 years ago
Joshua Haberman
fcf1db32b1
Fixed a few extraneous wrappings.
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
de3b396bd8
Merge pull request #483 from haberman/python-fixes4
...
Another round of fixes to pass many more unit tests
3 years ago
Joshua Haberman
201d2265e3
Variable rename for readability.
3 years ago
Joshua Haberman
8c256cc677
Addressed PR comments.
3 years ago
Joshua Haberman
5953ac4736
Backed out Reify() signature change.
3 years ago
Joshua Haberman
fff8dfb035
Cleaned up reporting of initialization errors.
3 years ago
Joshua Haberman
917f425326
Removed extraneous whitespace.
3 years ago