Definition at line 22 of file filestreamtest.cpp.
◆ FileStreamTest()
| FileStreamTest::FileStreamTest |
( |
| ) |
|
|
inline |
◆ ~FileStreamTest()
| FileStreamTest::~FileStreamTest |
( |
| ) |
|
|
virtual |
◆ SetUp()
| virtual void FileStreamTest::SetUp |
( |
| ) |
|
|
inlinevirtual |
Reimplemented from testing::Test.
Definition at line 27 of file filestreamtest.cpp.
28 const char *paths[] = {
30 "bin/data/sample.json",
31 "../bin/data/sample.json",
32 "../../bin/data/sample.json",
33 "../../../bin/data/sample.json" 36 for (
size_t i = 0; i <
sizeof(paths) /
sizeof(paths[0]); i++) {
37 fp = fopen(paths[i],
"rb");
45 fseek(fp, 0, SEEK_END);
46 length_ =
static_cast<size_t>(ftell(fp));
47 fseek(fp, 0, SEEK_SET);
50 json_[readLength] =
'\0';
#define ASSERT_TRUE(condition)
◆ TearDown()
| virtual void FileStreamTest::TearDown |
( |
| ) |
|
|
inlinevirtual |
◆ filename_
| const char* FileStreamTest::filename_ |
|
protected |
◆ json_
| char* FileStreamTest::json_ |
|
protected |
◆ length_
| size_t FileStreamTest::length_ |
|
protected |
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/external/rapidjson/test/unittest/filestreamtest.cpp