proxygen
folly::test::FileUtilTest Class Reference
Inheritance diagram for folly::test::FileUtilTest:
testing::Test

Protected Member Functions

 FileUtilTest ()
 
Reader reader (std::deque< ssize_t > spec)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Protected Attributes

std::string in_
 
std::vector< std::pair< size_t, Reader > > readers_
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Definition at line 133 of file FileUtilTest.cpp.

Constructor & Destructor Documentation

folly::test::FileUtilTest::FileUtilTest ( )
protected

Definition at line 143 of file FileUtilTest.cpp.

References in_, reader(), and readers_.

144  : in_("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") {
145  CHECK_EQ(62, in_.size());
146 
147  readers_.emplace_back(0, reader({0}));
148  readers_.emplace_back(62, reader({62}));
149  readers_.emplace_back(62, reader({62, -1})); // error after end (not called)
150  readers_.emplace_back(61, reader({61, 0}));
151  readers_.emplace_back(-1, reader({61, -1})); // error before end
152  readers_.emplace_back(62, reader({31, 31}));
153  readers_.emplace_back(62, reader({1, 10, 20, 10, 1, 20}));
154  readers_.emplace_back(61, reader({1, 10, 20, 10, 20, 0}));
155  readers_.emplace_back(41, reader({1, 10, 20, 10, 0}));
156  readers_.emplace_back(-1, reader({1, 10, 20, 10, 20, -1}));
157 }
std::vector< std::pair< size_t, Reader > > readers_
Reader reader(std::deque< ssize_t > spec)

Member Function Documentation

Reader folly::test::FileUtilTest::reader ( std::deque< ssize_t >  spec)
protected

Definition at line 159 of file FileUtilTest.cpp.

References in_, and folly::gen::move.

Referenced by FileUtilTest().

159  {
160  return Reader(42, in_, std::move(spec));
161 }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Data Documentation

std::string folly::test::FileUtilTest::in_
protected

Definition at line 139 of file FileUtilTest.cpp.

Referenced by FileUtilTest(), reader(), and folly::test::TEST_F().

std::vector<std::pair<size_t, Reader> > folly::test::FileUtilTest::readers_
protected

Definition at line 140 of file FileUtilTest.cpp.

Referenced by FileUtilTest(), and folly::test::TEST_F().


The documentation for this class was generated from the following file: