flatbuffers/tests
Björn Harrtell ef76b5ece4
[TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510)
* [TS/JS] Entry point per namespace

* Fix handling of outputpath and array_test

* Attempt to fix generate_code

* Fix cwd for ts in generate_code

* Attempt to fixup bazel and some docs

* Add --ts-flat-files to bazel build to get bundle

* Move to DEFAULT_FLATC_TS_ARGS

* Attempt to add esbuild

* Attempt to use npm instead

* Remove futile attempt to add esbuild

* Attempt to as bazel esbuild

* Shuffle

* Upgrade bazel deps

* Revert failed attempts to get bazel working

* Ignore flatc tests for now

* Add esbuild dependency

* `package.json` Include esbuild

* `WORKSPACE` Add fetching esbuild binary

* Update WORKSPACE

* Unfreeze Lockfile

* Update WORKSPACE

* Update BUILD.bazel

* Rework to suggest instead of running external bundler

* Add esbuild generation to test script

* Prelim bundle test

* Run test JavaScriptTest from flatbuffers 1.x

* Deps upgrade

* Clang format fix

* Revert bazel changes

* Fix newline

* Generate with type declarations

* Handle "empty" root namespace

* Adjust tests for typescript_keywords.ts

* Separate test procedure for old node resolution module output

* Fix rel path for root level re-exports

* Bazel support for esbuild-based flatc

Unfortunately, we lose typing information because the new esbuild method
of generating single files does not generate type information.

The method used here is a bit hack-ish because it relies on parsing the
console output of flatc to figure out what to do.

* Try to fix bazel build for when node isn't present on host

* Auto formatting fixes

* Fix missing generated code

Co-authored-by: Derek Bailey <derekbailey@google.com>
Co-authored-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
2023-01-21 12:22:22 -08:00
..
DictionaryLookup Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
FlatBuffers.Benchmarks [C#] Prepares for official Nuget release (#7496) 2022-09-01 10:17:34 -07:00
FlatBuffers.Test Fix [C#] Object API - Invalid Property Name used in UnPackTo for unio… (#7751) 2023-01-07 12:37:22 -08:00
KeywordTest Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
MyGame Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
annotated_binary Annotated Binaries emit field names instead of type names (#7763) 2023-01-07 12:01:00 -08:00
arrays_test Rust soundness fixes (#7518) 2022-09-29 09:58:49 -04:00
cpp17 Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08: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.1.20 (#7794) 2023-01-21 12:03:17 -08:00
flatc [Kotlin] Control the generation of reflection with --reflect-names (#7775) 2023-01-10 10:03:39 -08:00
fuzzer Audit and fixups for GCC and Clang (#7212) 2022-08-16 10:48:41 -07:00
include_test Fix go generator undefined Package name, also throwing exception (#7632) 2022-11-22 13:21:25 -08:00
include_test1 Rust soundness fixes (#7518) 2022-09-29 09:58:49 -04:00
include_test2 Rust soundness fixes (#7518) 2022-09-29 09:58:49 -04:00
key_field Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
keyword_test Fix Rust codegen escaping field in tables. (#7659) 2022-12-15 06:04:57 +00: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.1.20 (#7794) 2023-01-21 12:03:17 -08:00
more_defaults Rust soundness fixes (#7518) 2022-09-29 09:58:49 -04:00
name_clash_test
namespace_test [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
nested_namespace_test Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
nim [Nim] Bfbs Nim Generator (#7534) 2022-10-21 14:30:04 -04:00
optional_scalars [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
order Fix go generator undefined Package name, also throwing exception (#7632) 2022-11-22 13:21:25 -08:00
private_annotation_test Rust soundness fixes (#7518) 2022-09-29 09:58:49 -04:00
prototest Add support for parsing proto map fields (#7613) 2022-11-08 10:51:24 -08:00
rust_no_std_compilation_test Rust fix compilation for no_std targets #2 (#7553) 2022-10-19 09:14:41 -04:00
rust_serialize_test Rust soundness fixes (#7518) 2022-09-29 09:58:49 -04:00
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.1.20 (#7794) 2023-01-21 12:03:17 -08:00
ts [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
type_field_collsion Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
union_value_collsion Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
union_vector [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
Abc.nim Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
BUILD.bazel Add support for using array of scalar as key field in Cpp (#7623) 2022-11-18 11:04:46 -08:00
DartTest.sh Fix import problem in dart generated files. (fixes #7609). (#7621) 2022-11-13 19:21:57 +00:00
GoTest.sh Add --go-module-name flag to support generating Go module compatible code (#7651) 2022-11-22 14:28:01 -08:00
KotlinTest.kt [Kotlin] Fix key lookup returning null clashing with default value (#7237) 2022-04-11 17:17:19 -07:00
KotlinTest.sh
LuaTest.bat Lua Generator using IR. (#6940) 2021-12-02 21:29:19 -08:00
LuaTest.sh Lua Generator using IR. (#6940) 2021-12-02 21:29:19 -08:00
MoreDefaults.nim Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
MutatingBool.fbs Fixed default value of bool in struct for Swift (#7072) 2022-02-02 23:39:19 +03:00
Pizza.go Fix go generator undefined Package name, also throwing exception (#7632) 2022-11-22 13:21:25 -08:00
Property.nim Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
PythonTest.sh [Python] Fixed the issue with nested unions relying on InitFromBuf. (#7576) 2022-10-26 14:56:52 -07:00
RustTest.bat Rust fix compilation for no_std targets #2 (#7553) 2022-10-19 09:14:41 -04:00
RustTest.sh Rust fix compilation for no_std targets #2 (#7553) 2022-10-19 09:14:41 -04:00
TableA.lua Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
TableA.nim Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
TableAT.java
TestAll.sh Moved TypeScriptTests to python script (#7411) 2022-08-07 11:42:02 -07:00
TestMutatingBool.nim Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08: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 Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08: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.1.20 (#7794) 2023-01-21 12:03:17 -08: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 confrom failure for nullptr dereference. (#7688) 2022-12-01 20:21:48 -08:00
evolution_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
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 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
fuzz_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
go_test.go Add key lookup support for tables in Go (#7644) 2022-11-22 14:08:19 -08:00
gold_flexbuffer_example.bin
include_build_test.cc Add deps attribute to flatbuffer_cc_library (#7107) 2022-02-21 22:33:47 -06:00
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 Add deps attribute to flatbuffer_cc_library (#7107) 2022-02-21 22:33:47 -06:00
includer_test.fbs Add deps attribute to flatbuffer_cc_library (#7107) 2022-02-21 22:33:47 -06:00
is_quiet_nan.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
javatest.bin
json_test.cpp [C++] Fix clang `-Wnewline-eof` warning (#7711) 2022-12-14 21:35:54 -08:00
json_test.h [C++] Fix clang `-Wnewline-eof` warning (#7711) 2022-12-14 21:35:54 -08:00
key_field_test.cpp [C++] Update to address comparator failure in big endian (#7681) 2022-12-06 14:02:16 -08:00
key_field_test.h Add support for using array of scalar as key field in Cpp (#7623) 2022-11-18 11:04:46 -08:00
keyword_test.fbs Fix Rust codegen escaping field in tables. (#7659) 2022-12-15 06:04:57 +00:00
lobstertest.lobster [Lobster] file_identifier support 2022-03-08 15:39:12 -08:00
luatest.lua
monster_extra.fbs
monster_extra_generated.h Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
monster_extra_my_game_generated.dart Namerdart (#7187) 2022-03-28 18:07:09 -04:00
monster_test.afb Put documentation to bfbs if it is not empty (#7649) 2022-11-17 15:55:42 -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 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
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 cpp_generator: comment out unused parameter to avoid warnings (#7381) 2022-07-26 15:05:01 -07:00
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.1.20 (#7794) 2023-01-21 12:03:17 -08:00
monster_test_generated.grpc.fb.cc missing generated files (#6966) 2021-12-03 11:23:58 -08:00
monster_test_generated.grpc.fb.h missing generated files (#6966) 2021-12-03 11:23:58 -08:00
monster_test_generated.h Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08: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 Fix handling of +/-inf defaults in TS/rust/go/dart codegen (#7588) 2022-11-08 10:59:46 -08:00
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 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
monsterdata_python_wire.mon
monsterdata_test.afb Annotated Binaries emit field names instead of type names (#7763) 2023-01-07 12:01:00 -08:00
monsterdata_test.golden
monsterdata_test.json fixed comparator for native_inline (#7076) 2022-02-02 23:44:43 -08:00
monsterdata_test.mon fixed comparator for native_inline (#7076) 2022-02-02 23:44:43 -08:00
more_defaults.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 [C++] support native_inline attribute for vector of tables (#7479) 2022-08-29 12:48:10 -07:00
native_inline_table_test_generated.h Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
native_type_test.fbs
native_type_test_generated.h Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
native_type_test_impl.cpp
native_type_test_impl.h clang-all (#6941) 2021-11-19 17:01:48 -08:00
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 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 23.1.20 (#7794) 2023-01-21 12:03:17 -08: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 [C++] Fix clang `-Wnewline-eof` warning (#7711) 2022-12-14 21:35:54 -08:00
optional_scalars_test.h Refactor test.cpp (#7487) 2022-08-28 16:54:58 -07:00
parser_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
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
private_annotation_test.fbs Started implementation for private flags in rust (#7269) 2022-06-05 23:04:05 +02:00
proto_test.cpp Add support for parsing proto map fields (#7613) 2022-11-08 10:51:24 -08:00
proto_test.h [C++] Fix clang `-Wnewline-eof` warning (#7711) 2022-12-14 21:35:54 -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
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
test.cpp Fix operator==() generated for field of fixed sized array (#7749) 2023-01-05 20:11:11 -08: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 test: fix undefined order of functio parameters. (#6946) 2021-11-22 12:14:31 -08:00
type_field_collsion.fbs [C#] Fix collision of field name and type name (#7149) 2022-03-30 12:51:58 -07:00
unicode_test.json
unicode_test.mon
union_value_collision.fbs Fix [C#] Object API - Invalid Property Name used in UnPackTo for unio… (#7751) 2023-01-07 12:37:22 -08:00
util_test.cpp [Python] Python fixed size array (#7529) 2022-09-22 11:08:09 -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