mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 15:22:40 +00:00
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:
36
tests/monster_test.h
Normal file
36
tests/monster_test.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef TESTS_MONSTER_TEST_H
|
||||
#define TESTS_MONSTER_TEST_H
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "flatbuffers/detached_buffer.h"
|
||||
#include "monster_test_generated.h"
|
||||
|
||||
namespace flatbuffers {
|
||||
namespace tests {
|
||||
|
||||
flatbuffers::DetachedBuffer CreateFlatBufferTest(std::string &buffer);
|
||||
|
||||
void AccessFlatBufferTest(const uint8_t *flatbuf, size_t length,
|
||||
bool pooled = true);
|
||||
|
||||
void MutateFlatBuffersTest(uint8_t *flatbuf, std::size_t length);
|
||||
|
||||
void ObjectFlatBuffersTest(uint8_t *flatbuf);
|
||||
|
||||
void CheckMonsterObject(MyGame::Example::MonsterT *monster2);
|
||||
|
||||
void SizePrefixedTest();
|
||||
|
||||
void TestMonsterExtraFloats(const std::string& tests_data_path);
|
||||
|
||||
void EnumNamesTest();
|
||||
|
||||
void TypeAliasesTest();
|
||||
|
||||
void ParseAndGenerateTextTest(const std::string& tests_data_path, bool binary);
|
||||
|
||||
} // namespace tests
|
||||
} // namespace flatbuffers
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user