flatbuffers/tests
Derek Bailey 63b7b25289
FlatBuffers 64 for C++ (#7935)
* First working hack of adding 64-bit. Don't judge :)

* Made vector_downward work on 64 bit types

* vector_downward uses size_t, added offset64 to reflection

* cleaned up adding offset64 in parser

* Add C++ testing skeleton for 64-bit

* working test for CreateVector64

* working >2 GiB buffers

* support for large strings

* simplified CreateString<> to just provide the offset type

* generalize CreateVector template

* update test_64.afb due to upstream format change

* Added Vector64 type, which is just an alias for vector ATM

* Switch to Offset64 for Vector64

* Update for reflection bfbs output change

* Starting to add support for vector64 type in C++

* made a generic CreateVector that can handle different offsets and vector types

* Support for 32-vector with 64-addressing

* Vector64 basic builder + tests working

* basic support for json vector64 support

* renamed fields in test_64bit.fbs to better reflect their use

* working C++ vector64 builder

* Apply --annotate-sparse-vector to 64-bit tests

* Enable Vector64 for --annotate-sparse-vectors

* Merged from upstream

* Add `near_string` field for testing 32-bit offsets alongside

* keep track of where the 32-bit and 64-bit regions are for flatbufferbuilder

* move template<> outside class body for GCC

* update run.sh to build and run tests

* basic assertion for adding 64-bit offset at the wrong time

* started to separate `FlatBufferBuilder` into two classes, 1 64-bit aware, the other not

* add test for nested flatbuffer vector64, fix bug in alignment of big vectors

* fixed CreateDirect method by iterating by Offset64 first

* internal refactoring of flatbufferbuilder

* block not supported languages in the parser from using 64-bit

* evolution tests for adding a vector64 field

* conformity tests for adding/removing offset64 attributes

* ensure test is for a big buffer

* add parser error tests for `offset64` and `vector64` attributes

* add missing static that GCC only complains about

* remove stdint-uintn.h header that gets automatically added

* move 64-bit CalculateOffset internal

* fixed return size of EndVector

* various fixes on windows

* add SizeT to vector_downward

* minimze range of size changes in vector and builder

* reworked how tracking if 64-offsets are added

* Add ReturnT to EndVector

* small cleanups

* remove need for second Array definition

* combine IndirectHelpers into one definition

* started support for vector of struct

* Support for 32/64-vectors of structs + Offset64

* small cleanups

* add verification for vector64

* add sized prefix for 64-bit buffers

* add fuzzer for 64-bit

* add example of adding many vectors using a wrapper table

* run the new -bfbs-gen-embed logic on the 64-bit tests

* remove run.sh and fix cmakelist issue

* fixed bazel rules

* fixed some PR comments

* add 64-bit tests to cmakelist
2023-05-09 09:16:30 -07:00
..
64bit FlatBuffers 64 for C++ (#7935) 2023-05-09 09:16:30 -07:00
annotated_binary Fixed vtable duplication for binary annotator (#7809) 2023-02-02 10:39:39 -08:00
arrays_test
cpp17 FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
DictionaryLookup FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
docker Moves all of the swift test code into tests/swift (#7509) 2022-09-09 22:35:42 -07:00
evolution_test FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
FlatBuffers.Benchmarks
FlatBuffers.Test [CS] Verifier (#7850) 2023-04-06 00:29:14 +02:00
flatc [Kotlin] Control the generation of reflection with --reflect-names (#7775) 2023-01-10 10:03:39 -08:00
fuzzer FlatBuffers 64 for C++ (#7935) 2023-05-09 09:16:30 -07:00
include_test Fix go generator undefined Package name, also throwing exception (#7632) 2022-11-22 13:21:25 -08:00
include_test1
include_test2
key_field FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
keyword_test Fix Rust codegen escaping field in tables. (#7659) 2022-12-15 06:04:57 +00:00
KeywordTest FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
minified_enums Fixes #7345 to add the option to minify enums (#7566) 2022-11-11 04:47:28 +00:00
monster_test Fix handling of +/-inf defaults in TS/rust/go/dart codegen (#7588) 2022-11-08 10:59:46 -08:00
monster_test_serialize Fix handling of +/-inf defaults in TS/rust/go/dart codegen (#7588) 2022-11-08 10:59:46 -08:00
monster_test_suffix FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
more_defaults
MyGame FlatBuffers 64 for C++ (#7935) 2023-05-09 09:16:30 -07:00
name_clash_test
namespace_test FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
nested_namespace_test FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
nim
optional_scalars FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
order Fix go generator undefined Package name, also throwing exception (#7632) 2022-11-22 13:21:25 -08:00
private_annotation_test
prototest Parsing from proto should keep field ID. (fixes #7645) (#7655) 2023-02-01 11:17:35 -08:00
rust_no_std_compilation_test
rust_serialize_test
rust_usage_test Fix handling of +/-inf defaults in TS/rust/go/dart codegen (#7588) 2022-11-08 10:59:46 -08:00
swift FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
ts Migrate from rules_nodejs to rules_js/rules_ts (take 2) (#7928) 2023-05-03 11:48:15 -07:00
type_field_collsion FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
union_value_collsion FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
union_vector FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
Abc.nim FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
alignment_test.cpp
alignment_test.fbs
alignment_test.h
alignment_test_generated.h FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
arrays_test.bfbs Put documentation to bfbs if it is not empty (#7649) 2022-11-17 15:55:42 -08:00
arrays_test.fbs
arrays_test.golden
arrays_test.schema.json
arrays_test_generated.h FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
BUILD.bazel FlatBuffers 64 for C++ (#7935) 2023-05-09 09:16:30 -07:00
DartTest.sh Fix import problem in dart generated files. (fixes #7609). (#7621) 2022-11-13 19:21:57 +00:00
dictionary_lookup.fbs
evolution_test.cpp FlatBuffers 64 for C++ (#7935) 2023-05-09 09:16:30 -07:00
evolution_test.h
flexbuffers_test.cpp Add missing #include <algorithm> for std::min/std::max uses, and #include <limits> for std::numeric_limits<> (#7624) 2022-11-08 09:36:35 -08:00
flexbuffers_test.h [C++] Fix clang -Wnewline-eof warning (#7711) 2022-12-14 21:35:54 -08:00
fuzz_test.cpp GenerateText gives text error on failure 2023-05-03 13:03:00 -07:00
fuzz_test.h
go_test.go Support file_identifier in Go (#7904) 2023-04-26 05:15:09 +00:00
gold_flexbuffer_example.bin
GoTest.sh Add --go-module-name flag to support generating Go module compatible code (#7651) 2022-11-22 14:28:01 -08:00
include_build_test.cc
include_test1_generated.dart Fix import problem in dart generated files. (fixes #7609). (#7621) 2022-11-13 19:21:57 +00:00
include_test2_my_game.other_name_space_generated.dart Fix import problem in dart generated files. (fixes #7609). (#7621) 2022-11-13 19:21:57 +00:00
included_test.fbs
includer_test.fbs
is_quiet_nan.h
javatest.bin
json_test.cpp GenerateText gives text error on failure 2023-05-03 13:03:00 -07:00
json_test.h Make JSON supporting advanced union features (#7869) 2023-04-26 05:37:06 +00:00
key_field_test.cpp [C++] Enable using struct and array of struct as key (#7741) 2023-01-24 16:37:13 -08:00
key_field_test.h [C++] Enable using struct and array of struct as key (#7741) 2023-01-24 16:37:13 -08:00
keyword_test.fbs Fix Rust codegen escaping field in tables. (#7659) 2022-12-15 06:04:57 +00:00
KotlinTest.kt
KotlinTest.sh
lobstertest.lobster [Lobster] file_identifier support 2022-03-08 15:39:12 -08:00
LuaTest.bat
luatest.lua
LuaTest.sh
monster_extra.fbs
monster_extra_generated.h FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
monster_extra_my_game_generated.dart
monster_test.afb Fixed vtable duplication for binary annotator (#7809) 2023-02-02 10:39:39 -08:00
monster_test.bfbs Put documentation to bfbs if it is not empty (#7649) 2022-11-17 15:55:42 -08:00
monster_test.cpp GenerateText gives text error on failure 2023-05-03 13:03:00 -07:00
monster_test.fbs Fix handling of +/-inf defaults in TS/rust/go/dart codegen (#7588) 2022-11-08 10:59:46 -08:00
monster_test.grpc.fb.cc
monster_test.grpc.fb.h
monster_test.h [C++] Fix clang -Wnewline-eof warning (#7711) 2022-12-14 21:35:54 -08:00
monster_test.schema.json Fix handling of +/-inf defaults in TS/rust/go/dart codegen (#7588) 2022-11-08 10:59:46 -08:00
monster_test_bfbs_generated.h FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
monster_test_generated.grpc.fb.cc
monster_test_generated.grpc.fb.h
monster_test_generated.h FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
monster_test_generated.lobster Fix handling of +/-inf defaults in TS/rust/go/dart codegen (#7588) 2022-11-08 10:59:46 -08:00
monster_test_generated.py Optionally generate Python type annotations (#7858) 2023-04-28 09:38:29 -07:00
monster_test_generated.ts
monster_test_my_game.example2_generated.dart Fix import problem in dart generated files. (fixes #7609). (#7621) 2022-11-13 19:21:57 +00:00
monster_test_my_game.example_generated.dart Fix import problem in dart generated files. (fixes #7609). (#7621) 2022-11-13 19:21:57 +00:00
monster_test_my_game_generated.dart Fix import problem in dart generated files. (fixes #7609). (#7621) 2022-11-13 19:21:57 +00:00
monsterdata_extra.json
monsterdata_go_wire.mon.sp Support file_identifier in Go (#7904) 2023-04-26 05:15:09 +00:00
monsterdata_python_wire.mon
monsterdata_test.afb Fixed vtable duplication for binary annotator (#7809) 2023-02-02 10:39:39 -08:00
monsterdata_test.golden
monsterdata_test.json
monsterdata_test.mon
more_defaults.fbs
MoreDefaults.nim FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
MutatingBool.fbs
nan_inf_test.fbs [swift] fix broken swift test build (#7633) (#7634) 2022-11-11 18:36:47 +01:00
native_inline_table_test.fbs
native_inline_table_test_generated.h FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
native_type_test.fbs
native_type_test_generated.h FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
native_type_test_impl.cpp
native_type_test_impl.h
nested_union_test.fbs [Python] Fixed the issue with nested unions relying on InitFromBuf. (#7576) 2022-10-26 14:56:52 -07:00
optional_scalars.fbs
optional_scalars.json
optional_scalars_defaults.json
optional_scalars_generated.h FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
optional_scalars_generated.lobster
optional_scalars_generated.ts
optional_scalars_test.cpp [C++] Fix clang -Wnewline-eof warning (#7711) 2022-12-14 21:35:54 -08:00
optional_scalars_test.h
parser_test.cpp FlatBuffers 64 for C++ (#7935) 2023-05-09 09:16:30 -07:00
parser_test.h [C++] Fix clang -Wnewline-eof warning (#7711) 2022-12-14 21:35:54 -08:00
phpTest.php Fix PHP byte validation and reenable builds (#7670) 2022-11-29 08:12:28 -08:00
phpUnionVectorTest.php
phpUnionVectorTest.sh
Pizza.go Fix go generator undefined Package name, also throwing exception (#7632) 2022-11-22 13:21:25 -08:00
private_annotation_test.fbs
Property.nim FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
proto_test.cpp GenerateText gives text error on failure 2023-05-03 13:03:00 -07:00
proto_test.h Parsing from proto should keep field ID. (fixes #7645) (#7655) 2023-02-01 11:17:35 -08:00
py_flexbuffers_test.py Fix Python host-endianness dependencies (#7773) 2023-01-10 10:20:08 -08:00
py_test.py Fix some identity/equality confusion in Python tests (#7768) 2023-01-10 19:36:39 +00:00
PythonTest.sh [Python] Fixed the issue with nested unions relying on InitFromBuf. (#7576) 2022-10-26 14:56:52 -07:00
reflection_test.cpp Fix handling of +/-inf defaults in TS/rust/go/dart codegen (#7588) 2022-11-08 10:59:46 -08:00
reflection_test.h tests/reflection_test.h: add missing <stdint.h> include (#7680) 2022-11-30 18:47:10 -08:00
required_strings.fbs [TS]: builder, Fix requiredField(). Verity that the field is present in the vtable (#7739) (#7752) 2023-01-10 10:43:17 -08:00
RustTest.bat
RustTest.sh
TableA.lua FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
TableA.nim FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
TableAT.java
test.cpp FlatBuffers 64 for C++ (#7935) 2023-05-09 09:16:30 -07:00
test.fbs Optionally generate Python type annotations (#7858) 2023-04-28 09:38:29 -07:00
test_assert.cpp
test_assert.h GenerateText gives text error on failure 2023-05-03 13:03:00 -07:00
test_builder.cpp FlatBuffers 64 for C++ (#7935) 2023-05-09 09:16:30 -07:00
test_builder.h FlatBuffers 64 for C++ (#7935) 2023-05-09 09:16:30 -07:00
TestAll.sh
TestMutatingBool.nim FlatBuffers Version 23.5.8 (#7943) 2023-05-09 08:05:25 -07:00
type_field_collsion.fbs
unicode_test.json
unicode_test.mon
union_value_collision.fbs [CS] Naming collision if field has same name as table and used as key (#7842) 2023-03-02 21:42:27 -08:00
util_test.cpp ToCamelCase() when kLowerCamel now converts first char to lower. (#7838) 2023-03-15 01:09:24 +00:00
util_test.h
vector_has_test.fbs