flatbuffers/tests
Denis Blank 72aa85a759
[C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520)
* [C++] Add a failing unit test for #7516 (Rare bad buffer content alignment if sizeof(T) != alignof(T))

* [C++] Fix final buffer alignment when using an array of structs
* A struct can have an arbitrary size and therefore sizeof(struct) == alignof(struct)
  does not hold anymore as for value primitives.
* This patch fixes this by introducing alignment parameters to various
  CreateVector*/StartVector calls.
* Closes #7516
2022-09-21 11:05:05 -07:00
..
annotated_binary
arrays_test Issue#6959 :Updated Automatically generated rust files. (#7425) 2022-08-10 09:15:35 -04:00
cpp17 UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
DictionaryLookup FlatBuffers Version 2.0.8 (#7492) 2022-08-29 20:43:36 -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 2.0.8 (#7492) 2022-08-29 20:43:36 -07:00
FlatBuffers.Benchmarks [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
FlatBuffers.Test [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
flatc [TS/JS] Move TS tests to dedicated folder and deps upgrade (#7508) 2022-09-12 20:03:23 -07:00
fuzzer Audit and fixups for GCC and Clang (#7212) 2022-08-16 10:48:41 -07:00
include_test
include_test1 Issue#6959 :Updated Automatically generated rust files. (#7425) 2022-08-10 09:15:35 -04:00
include_test2 Issue#6959 :Updated Automatically generated rust files. (#7425) 2022-08-10 09:15:35 -04:00
keyword_test Issue#6959 :Updated Automatically generated rust files. (#7425) 2022-08-10 09:15:35 -04:00
KeywordTest [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
monster_test Issue#6959 :Updated Automatically generated rust files. (#7425) 2022-08-10 09:15:35 -04:00
monster_test_serialize Issue#6959 :Updated Automatically generated rust files. (#7425) 2022-08-10 09:15:35 -04:00
monster_test_suffix UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
more_defaults Issue#6959 :Updated Automatically generated rust files. (#7425) 2022-08-10 09:15:35 -04:00
my-game Wrap types in namespace for --ts-flat-files and --gen-all (#7451) 2022-08-16 12:52:26 -07:00
MyGame [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
name_clash_test
namespace_test UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
nested_namespace_test [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
optional-scalars Wrap types in namespace for --ts-flat-files and --gen-all (#7451) 2022-08-16 12:52:26 -07:00
optional_scalars [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
private_annotation_test Issue#6959 :Updated Automatically generated rust files. (#7425) 2022-08-10 09:15:35 -04:00
prototest Handle +/-inf in protos (#7256) 2022-04-19 13:07:26 -07:00
rust_serialize_test
rust_usage_test Make flatc generate Rust files not requiring std (#7273) 2022-04-26 21:40:03 -04:00
swift Moves all of the swift test code into tests/swift (#7509) 2022-09-09 22:35:42 -07:00
ts [TS/JS] Move TS tests to dedicated folder and deps upgrade (#7508) 2022-09-12 20:03:23 -07:00
type_field_collsion [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
union_vector UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
alignment_test.cpp [C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520) 2022-09-21 11:05:05 -07:00
alignment_test.fbs [C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520) 2022-09-21 11:05:05 -07:00
alignment_test.h [C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520) 2022-09-21 11:05:05 -07:00
alignment_test_generated.h [C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520) 2022-09-21 11:05:05 -07:00
arrays_test.bfbs
arrays_test.fbs
arrays_test.golden
arrays_test.schema.json
arrays_test_generated.h FlatBuffers Version 2.0.8 (#7492) 2022-08-29 20:43:36 -07:00
BUILD.bazel [C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520) 2022-09-21 11:05:05 -07:00
DartTest.sh [Dart] Implement putBool to fix errors when serializing structs with bools (#7359) 2022-06-28 11:16:47 -04:00
dictionary_lookup.fbs [Java] Fix key lookup returning null clashing with default value (#7236) 2022-04-11 17:16:41 -07:00
evolution_test.cpp Fix conform (#7532) 2022-09-14 21:45:40 -07:00
evolution_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
flexbuffers_test.cpp Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
flexbuffers_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
fuzz_test.cpp Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
fuzz_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
go_test.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
gold_flexbuffer_example.bin
GoTest.sh Turn off go modules temporary until we get a proper fix (#7251) 2022-04-16 15:29:18 -07:00
include_build_test.cc
included_test.fbs
includer_test.fbs
is_quiet_nan.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
javatest.bin
json_test.cpp Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
json_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
keyword_test.fbs
KotlinTest.kt [Kotlin] Fix key lookup returning null clashing with default value (#7237) 2022-04-11 17:17:19 -07:00
KotlinTest.sh
lobstertest.lobster
LuaTest.bat
luatest.lua
LuaTest.sh
monster_extra.fbs
monster_extra_generated.h UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
monster_extra_my_game_generated.dart
monster_test.afb Add Annotations for Monster schema and example buffer 2022-04-21 20:43:55 -07:00
monster_test.bfbs
monster_test.cpp UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
monster_test.fbs
monster_test.grpc.fb.cc
monster_test.grpc.fb.h cpp_generator: comment out unused parameter to avoid warnings (#7381) 2022-07-26 15:05:01 -07:00
monster_test.h UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
monster_test.schema.json
monster_test_bfbs_generated.h FlatBuffers Version 2.0.8 (#7492) 2022-08-29 20:43:36 -07:00
monster_test_generated.grpc.fb.cc
monster_test_generated.grpc.fb.h
monster_test_generated.h UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
monster_test_generated.lobster Add explicit return types to lobster generated code (#7312) 2022-05-23 10:50:01 -07:00
monster_test_generated.py
monster_test_generated.ts Wrap types in namespace for --ts-flat-files and --gen-all (#7451) 2022-08-16 12:52:26 -07:00
monster_test_my_game.example2_generated.dart
monster_test_my_game.example_generated.dart
monster_test_my_game_generated.dart
monsterdata_extra.json
monsterdata_go_wire.mon.sp
monsterdata_python_wire.mon
monsterdata_test.afb
monsterdata_test.golden
monsterdata_test.json
monsterdata_test.mon
more_defaults.fbs
MutatingBool.fbs
native_inline_table_test.fbs [C++] support native_inline attribute for vector of tables (#7479) 2022-08-29 12:48:10 -07:00
native_inline_table_test_generated.h UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
native_type_test.fbs
native_type_test_generated.h UnPackTo disable merge by default (#7527) 2022-09-13 22:00:01 -07:00
native_type_test_impl.cpp
native_type_test_impl.h
optional_scalars.fbs
optional_scalars.json Reenable optional json (#7352) 2022-06-16 09:26:44 -07:00
optional_scalars_defaults.json Reenable optional json (#7352) 2022-06-16 09:26:44 -07:00
optional_scalars_generated.h FlatBuffers Version 2.0.8 (#7492) 2022-08-29 20:43:36 -07:00
optional_scalars_generated.lobster Add explicit return types to lobster generated code (#7312) 2022-05-23 10:50:01 -07:00
optional_scalars_generated.ts Wrap types in namespace for --ts-flat-files and --gen-all (#7451) 2022-08-16 12:52:26 -07:00
optional_scalars_test.cpp Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
optional_scalars_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
parser_test.cpp prevent force_align attribute on enums (#7523) 2022-09-10 13:41:58 -07:00
parser_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
phpTest.php
phpUnionVectorTest.php
phpUnionVectorTest.sh
private_annotation_test.fbs Started implementation for private flags in rust (#7269) 2022-06-05 23:04:05 +02:00
proto_test.cpp Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
proto_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
py_flexbuffers_test.py
py_test.py Implement optional scalars for Python (#7318) 2022-06-13 09:16:00 -04:00
PythonTest.sh
reflection_test.cpp Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
reflection_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
RustTest.bat
RustTest.sh
TableA.lua FlatBuffers Version 2.0.8 (#7492) 2022-08-29 20:43:36 -07:00
TableAT.java
test.cpp [C++] Rare bad buffer content alignment if sizeof(T) != alignof(T) (#7520) 2022-09-21 11:05:05 -07:00
test_assert.cpp remove travis config (#7522) 2022-09-10 12:36:51 -07:00
test_assert.h avoid zero-as-null-pointer warning (#7423) 2022-08-08 21:32:13 -07:00
test_builder.cpp Audit and fixups for GCC and Clang (#7212) 2022-08-16 10:48:41 -07:00
test_builder.h
TestAll.sh Moved TypeScriptTests to python script (#7411) 2022-08-07 11:42:02 -07:00
type_field_collsion.fbs
unicode_test.json
unicode_test.mon
util_test.cpp Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
util_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
vector_has_test.fbs [swift] add had<ArrayName> property for arrays to check presence in a message (#7280) 2022-05-11 15:35:53 +02:00