mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
* 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
36 lines
840 B
C++
36 lines
840 B
C++
#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 |