Refactor test.cpp (#7487)

* Add timing command to cmakelist

* Start to split test.cpp. Move flexbuffers tests

* Move monster related tests to own file

* Move parser related tests to own file

* Move json related tests to own file

* Move proto related tests to own file

* moved more functions to parser test

* moved more functions to parser test2

* move monster extra tests to monster test

* move evolution tests to own file

* move reflection tests to own file

* move util tests to own file

* rehomed various tests

* move optional scalars test to own file:

* rehome more tests

* move fuzz tests. Got rid of global test_data_path

* fixes for CI failures

* add bazel files
This commit is contained in:
Derek Bailey
2022-08-28 16:54:58 -07:00
committed by GitHub
parent 7edf8c9084
commit 694add668b
24 changed files with 3784 additions and 3395 deletions

33
tests/parser_test.h Normal file
View File

@@ -0,0 +1,33 @@
#ifndef TESTS_PARSER_TEST_H
#define TESTS_PARSER_TEST_H
namespace flatbuffers {
namespace tests {
void ErrorTest();
void EnumOutOfRangeTest();
void IntegerOutOfRangeTest();
void InvalidFloatTest();
void UnicodeInvalidSurrogatesTest();
void InvalidUTF8Test();
void ValueTest();
void NestedListTest();
void EnumStringsTest();
void EnumValueTest();
void IntegerBoundaryTest();
void ValidFloatTest();
void UnicodeTest();
void UnicodeTestAllowNonUTF8();
void UnicodeTestGenerateTextFailsOnNonUTF8();
void UnicodeSurrogatesTest();
void UnknownFieldsTest();
void ParseUnionTest();
void ValidSameNameDifferentNamespaceTest();
void WarningsAsErrorsTest();
void StringVectorDefaultsTest();
void FieldIdentifierTest();
} // namespace tests
} // namespace flatbuffers
#endif // TESTS_PARSER_TEST_H