|
proxygen
|
#include <folly/File.h>#include <folly/String.h>#include <folly/portability/Fcntl.h>#include <folly/portability/GTest.h>Go to the source code of this file.
Macros | |
| #define | EXPECT_CONTAINS(haystack, needle) |
Functions | |
| TEST (File, Simple) | |
| TEST (File, SimpleStringPiece) | |
| TEST (File, OwnsFd) | |
| TEST (File, Release) | |
| TEST (File, UsefulError) | |
| TEST (File, Truthy) | |
| TEST (File, HelperCtor) | |
| #define EXPECT_CONTAINS | ( | haystack, | |
| needle | |||
| ) |
| TEST | ( | File | , |
| Simple | |||
| ) |
Definition at line 37 of file FileTest.cpp.
References folly::File::close(), EXPECT_EQ, EXPECT_NE, f, folly::File::fd(), and fizz::detail::read().
| TEST | ( | File | , |
| SimpleStringPiece | |||
| ) |
Definition at line 49 of file FileTest.cpp.
References folly::File::close(), EXPECT_EQ, EXPECT_NE, f, folly::File::fd(), and fizz::detail::read().
| TEST | ( | File | , |
| OwnsFd | |||
| ) |
Definition at line 58 of file FileTest.cpp.
References folly::netops::close(), EXPECT_EQ, f, folly::File::fd(), folly::gen::move, pipe(), and fizz::detail::read().
| TEST | ( | File | , |
| Release | |||
| ) |
Definition at line 94 of file FileTest.cpp.
References folly::File::release().
| TEST | ( | File | , |
| UsefulError | |||
| ) |
| TEST | ( | File | , |
| Truthy | |||
| ) |
Definition at line 113 of file FileTest.cpp.
References ADD_FAILURE, EXPECT_FALSE, EXPECT_TRUE, shell_builder::temp, and folly::File::temporary().
| TEST | ( | File | , |
| HelperCtor | |||
| ) |
Definition at line 139 of file FileTest.cpp.
References EXPECT_EQ, EXPECT_NE, f, folly::File::makeFile(), and fizz::detail::read().