proxygen
|
Namespaces | |
detail | |
Classes | |
struct | Barrier |
class | CaptureFD |
class | ChangeToTempDir |
struct | DeterministicAtomicImpl |
struct | DeterministicMutex |
class | DeterministicSchedule |
struct | EnvVarSaver |
class | FileUtilTest |
class | IovecBuffers |
class | ManualSchedule |
class | MockAsyncServerSocket |
class | MockAsyncSocket |
class | MockAsyncSSLSocket |
class | MockAsyncTransport |
struct | MockAsyncUDPSocket |
class | MockReadCallback |
class | MockReplaySafetyCallback |
class | MockTimeoutManager |
class | MockWriteCallback |
class | MovableInt |
struct | One |
class | ReadFileFd |
class | Server |
class | TemporaryDirectory |
class | TemporaryFile |
class | TestAcceptCallback |
class | TestAdlIterable |
class | TestBothIndexingAndIter |
class | TestConnectionEventCallback |
class | TestRValueConstruct |
class | TestWriteChainAsyncTransportWrapper |
struct | TupleTo |
struct | TupleTo2 |
struct | TupleTo2< TemplateSeq< std::size_t, Ns... > > |
struct | TupleTo< std::tuple< U, Us... >, T > |
struct | TupleTo< std::tuple<>, std::tuple<> > |
struct | Two |
struct | UniformSubset |
class | WriteFileAtomic |
Typedefs | |
typedef DeterministicSchedule | DSched |
template<typename T > | |
using | ManualAtomic = test::DeterministicAtomicImpl< T, ManualSchedule > |
template<template< typename > class Atomic> | |
using | TestDistributedMutex = detail::distributed_mutex::DistributedMutex< Atomic, false > |
using | AuxAct = std::function< void(bool)> |
using | AuxChk = std::function< void(uint64_t)> |
template<typename T > | |
using | DeterministicAtomic = DeterministicAtomicImpl< T, DeterministicSchedule > |
using | OneOrTwo = boost::variant< One, Two > |
Functions | |
auto | begin (TestAdlIterable &instance) |
auto | begin (const TestAdlIterable &instance) |
auto | end (TestAdlIterable &instance) |
auto | end (const TestAdlIterable &instance) |
void | doWork (int work) |
template<typename Example , typename Req = bool, typename Mutex = std::mutex, template< typename > class Atom = std::atomic> | |
uint64_t | fc_test (int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false) |
uint64_t | run_test (int nthreads, int lines, int numRecs, int work, int ops, bool combining, bool simple, bool dedicated, bool tc, bool syncops, bool excl=false, bool allocAll=false) |
TEST (ProgramOptionsTest, Errors) | |
TEST (ProgramOptionsTest, Help) | |
TEST (ProgramOptionsTest, DevFull) | |
TEST (ProgramOptionsTest, CutArguments) | |
TEST (ProgramOptionsTest, Success) | |
TEST (ProgramOptionsTest, Aliases) | |
TEST (ProgramOptionsTest, BuiltinCommand) | |
TEST (ProgramOptionsTest, GFlagsStyleDefaultValues) | |
TEST (ProgramOptionsTest, GFlagsStyleFlagsSet) | |
TEST (ProgramOptionsTest, GFlagsStyleBoolFlagsNegation) | |
TEST (ProgramOptionsTest, GNUStyleDefaultValues) | |
TEST (ProgramOptionsTest, GNUStyleFlagsSet) | |
TEST (ProgramOptionsTest, GNUStyleBoolFlagsNegation) | |
TEST (ProgramOptionsTest, GNUStyleSubCommand) | |
TEST (ProgramOptionsTest, GNUStyleSubCommandUnrecognizedOptionFirst) | |
TEST (TupleOps, Copiable) | |
bool | operator== (const MovableInt &a, const MovableInt &b) |
TEST (TupleOps, Movable) | |
template<class U , class T > | |
U | tupleTo (const T &input) |
template<class U , class T , class Seq = typename TemplateTupleRange<U>::type, class Enable = typename std::enable_if< (std::tuple_size<U>::value == std::tuple_size<T>::value)>::type> | |
U | tupleTo2 (const T &input) |
TEST (TupleOps, TupleTo) | |
TEST (TupleOps, TupleTo2) | |
template<typename Func > | |
auto | msvcSuppressAbortOnInvalidParams (Func func) -> decltype(func()) |
std::string | glogErrorPattern () |
std::string | glogWarningPattern () |
std::string | glogErrOrWarnPattern () |
MATCHER_P (BufMatches, expected,"") | |
TEST (WriteChainAsyncTransportWrapperTest, TestSimpleIov) | |
TEST (WriteChainAsyncTransportWrapperTest, TestChainedIov) | |
TEST (WriteChainAsyncTransportWrapperTest, TestSimpleBuf) | |
TEST (RecordIOTest, Simple) | |
TEST (RecordIOTest, SmallRecords) | |
TEST (RecordIOTest, MultipleFileIds) | |
TEST (RecordIOTest, ExtraMagic) | |
TEST (RecordIOTest, Randomized) | |
int | createConnectedSocket (int port) |
void | runCloseTest (bool abortive) |
TEST (ShutdownSocketSetTest, OrderlyClose) | |
TEST (ShutdownSocketSetTest, AbortiveClose) | |
void | runKillTest (bool abortive) |
TEST (ShutdownSocketSetTest, OrderlyKill) | |
TEST (ShutdownSocketSetTest, AbortiveKill) | |
template<bool MayBlock, template< typename > class Atom> | |
void | run_basic_test () |
template<bool MayBlock, template< typename > class Atom> | |
void | run_pingpong_test (int numRounds) |
template<bool MayBlock, template< typename > class Atom, typename Clock > | |
void | run_basic_timed_wait_tests () |
template<bool MayBlock, template< typename > class Atom, typename Clock > | |
void | run_timed_wait_tmo_tests () |
template<bool MayBlock, template< typename > class Atom, typename Clock > | |
void | run_timed_wait_regular_test () |
template<bool MayBlock, template< typename > class Atom> | |
void | run_try_wait_tests () |
int | futexWakeImpl (const detail::Futex< ManualAtomic > *, int, uint32_t) |
detail::FutexResult | futexWaitImpl (const detail::Futex< ManualAtomic > *, uint32_t, std::chrono::system_clock::time_point const *, std::chrono::steady_clock::time_point const *, uint32_t) |
template<typename Clock , typename Duration > | |
std::cv_status | atomic_wait_until (const ManualAtomic< std::uintptr_t > *, std::uintptr_t, const std::chrono::time_point< Clock, Duration > &) |
void | atomic_notify_one (const ManualAtomic< std::uintptr_t > *) |
TEST (AtomicBitSet, Simple) | |
detail::FutexResult | futexWaitImpl (const detail::Futex< DeterministicAtomic > *futex, uint32_t expected, std::chrono::system_clock::time_point const *absSystemTimeout, std::chrono::steady_clock::time_point const *absSteadyTimeout, uint32_t waitMask) |
int | futexWakeImpl (const detail::Futex< test::DeterministicAtomic > *futex, int count, uint32_t wakeMask) |
detail::FutexResult | futexWaitImpl (const detail::Futex< test::DeterministicAtomic > *futex, uint32_t expected, std::chrono::system_clock::time_point const *absSystemTime, std::chrono::steady_clock::time_point const *absSteadyTime, uint32_t waitMask) |
template<typename Integer > | |
void | atomic_wait (const DeterministicAtomic< Integer > *, Integer) |
template<typename Integer , typename Clock , typename Duration > | |
std::cv_status | atomic_wait_until (const DeterministicAtomic< Integer > *, Integer, const std::chrono::time_point< Clock, Duration > &) |
template<typename Integer > | |
void | atomic_notify_one (const DeterministicAtomic< Integer > *) |
template<typename Integer > | |
void | atomic_notify_all (const DeterministicAtomic< Integer > *) |
TEST (ExceptionTest, Simple) | |
TEST (ExceptionTest, makeSystemError) | |
TEST_F (FileUtilTest, read) | |
TEST_F (FileUtilTest, pread) | |
TEST_F (FileUtilTest, readv) | |
TEST (FileUtilTest2, wrapv) | |
TEST_F (FileUtilTest, preadv) | |
TEST (String, readFile) | |
TEST_F (ReadFileFd, ReadZeroBytes) | |
TEST_F (ReadFileFd, ReadPartial) | |
TEST_F (ReadFileFd, ReadFull) | |
TEST_F (ReadFileFd, WriteOnlyFd) | |
TEST_F (ReadFileFd, InvalidFd) | |
TEST_F (WriteFileAtomic, writeNew) | |
TEST_F (WriteFileAtomic, overwrite) | |
TEST_F (WriteFileAtomic, directoryPermissions) | |
TEST_F (WriteFileAtomic, multipleFiles) | |
TEST (MPMCPipeline, Trivial) | |
TEST (MPMCPipeline, TrivialAmplification) | |
TEST (MPMCPipeline, MultiThreaded) | |
TEST (Overload, BoostVariant) | |
TEST (Overload, DiscriminatedPtr) | |
TEST (Overload, Pattern) | |
template<typename T1 , typename T2 > | |
::testing::AssertionResult | AreWithinSecs (T1 val1, T2 val2, std::chrono::seconds acceptableDeltaSecs) |
void | testVarint (uint64_t val, std::initializer_list< uint8_t > bytes) |
TEST (Varint, Interface) | |
TEST (Varint, Simple) | |
void | testVarintFail (std::initializer_list< uint8_t > bytes) |
TEST (Varint, Fail) | |
TEST (ZigZag, Simple) | |
unsigned | staticTracepointTestFunc (unsigned v) |
Variables | |
ShutdownSocketSet | shutdownSocketSet |
static std::unordered_map< const detail::Futex< DeterministicAtomic > *, std::list< std::pair< uint32_t, bool * > > > | futexQueues |
static std::mutex | futexLock |
using folly::test::AuxAct = typedef std::function<void(bool)> |
Definition at line 51 of file DeterministicSchedule.h.
using folly::test::AuxChk = typedef std::function<void(uint64_t)> |
Definition at line 52 of file DeterministicSchedule.h.
using folly::test::DeterministicAtomic = typedef DeterministicAtomicImpl<T, DeterministicSchedule> |
Definition at line 458 of file DeterministicSchedule.h.
Definition at line 26 of file BatonTestHelpers.h.
using folly::test::ManualAtomic = typedef test::DeterministicAtomicImpl<T, ManualSchedule> |
Definition at line 148 of file DistributedMutexTest.cpp.
using folly::test::OneOrTwo = typedef boost::variant<One, Two> |
Definition at line 34 of file OverloadTest.cpp.
using folly::test::TestDistributedMutex = typedef detail::distributed_mutex::DistributedMutex<Atomic, false> |
Definition at line 151 of file DistributedMutexTest.cpp.
::testing::AssertionResult folly::test::AreWithinSecs | ( | T1 | val1, |
T2 | val2, | ||
std::chrono::seconds | acceptableDeltaSecs | ||
) |
Definition at line 129 of file TestUtils.h.
References testing::AssertionFailure(), and testing::AssertionSuccess().
void folly::test::atomic_notify_all | ( | const DeterministicAtomic< Integer > * | ) |
Definition at line 490 of file DeterministicSchedule.h.
void folly::test::atomic_notify_one | ( | const ManualAtomic< std::uintptr_t > * | ) |
Definition at line 182 of file DistributedMutexTest.cpp.
References Atom, DEFINE_int32, EXPECT_EQ, h, i, folly::test::DeterministicSchedule::join(), folly::gen::move, mutex, sum(), folly::test::DeterministicSchedule::thread(), threads, and value.
void folly::test::atomic_notify_one | ( | const DeterministicAtomic< Integer > * | ) |
Definition at line 488 of file DeterministicSchedule.h.
void folly::test::atomic_wait | ( | const DeterministicAtomic< Integer > * | , |
Integer | |||
) |
Implementations of the atomic_wait API for DeterministicAtomic, these are no-ops here. Which for a correct implementation should not make a difference because threads are required to have atomic operations around waits and wakes
Definition at line 479 of file DeterministicSchedule.h.
std::cv_status folly::test::atomic_wait_until | ( | const ManualAtomic< std::uintptr_t > * | , |
std::uintptr_t | , | ||
const std::chrono::time_point< Clock, Duration > & | |||
) |
Definition at line 174 of file DistributedMutexTest.cpp.
std::cv_status folly::test::atomic_wait_until | ( | const DeterministicAtomic< Integer > * | , |
Integer | , | ||
const std::chrono::time_point< Clock, Duration > & | |||
) |
Definition at line 481 of file DeterministicSchedule.h.
auto folly::test::begin | ( | TestAdlIterable & | instance | ) |
Definition at line 56 of file ForeachTest.cpp.
References folly::test::TestAdlIterable::vec.
Referenced by folly::for_each_detail::adl::adl_begin(), folly::detail::as_sorted(), folly::basic_fbstring< char >::assign(), folly::AtomicHashMap< int64_t, int64_t >::begin(), BENCHMARK(), folly::Bits< T, Traits >::blockCount(), folly::small_vector< Observer< T > *, InlineObservers >::cbegin(), folly::ConcurrentSkipList< T, Comp, NodeAlloc, MAX_HEIGHT >::Accessor::cbegin(), folly::BasicFixedString< Char, N >::cbegin(), folly::basic_fbstring< char >::cbegin(), folly::small_vector< Observer< T > *, InlineObservers >::clear(), folly::IOBuf::cloneOneInto(), folly::Bits< T, Traits >::count(), folly::Random::create(), proxygen::StructuredHeaders::decodeBase64(), folly::ssl::OpenSSLCertUtils::derDecode(), folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::encode(), folly::compression::EliasFanoEncoderV2< Value, SkipValue, kSkipQuantum, kForwardQuantum >::encode(), folly::sorted_vector_set< folly::RequestData * >::equal_range(), folly::Range< unsigned char * >::equals(), folly::basic_fbstring< char >::erase(), folly::basic_fbstring< E, T, A, Storage >::find_first_not_of(), folly::basic_fbstring< E, T, A, Storage >::find_first_of(), folly::basic_fbstring< E, T, A, Storage >::find_last_not_of(), folly::basic_fbstring< E, T, A, Storage >::find_last_of(), folly::findFirstSet(), folly::small_vector< Observer< T > *, InlineObservers >::front(), folly::basic_fbstring< char >::front(), folly::getGlobalBenchmarkBaselineIndex(), folly::dynamic::hash(), folly::hash::hash_range(), folly::small_vector< Observer< T > *, InlineObservers >::insert(), folly::basic_fbstring< char >::insert(), folly::small_vector< Observer< T > *, InlineObservers >::insertImpl(), folly::basic_fbstring< E, T, A, Storage >::insertImpl(), folly::basic_fbstring< E, T, A, Storage >::insertImplDiscr(), folly::detail::internalJoin(), folly::basic_fbstring< char >::isSane(), folly::sorted_vector_set< folly::RequestData * >::lower_bound(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::lower_bound(), fizz::CertUtils::makePeerCert(), folly::small_vector< Observer< T > *, InlineObservers >::makeSizeInternal(), testing::internal::BeginEndDistanceIsMatcher< DistanceMatcher >::Impl< Container >::MatchAndExplain(), folly::TimeoutQueue::nextExpiration(), folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::Layout::openList(), folly::compression::EliasFanoEncoderV2< Value, SkipValue, kSkipQuantum, kForwardQuantum >::Layout::openList(), folly::BasicFixedString< Char, N >::operator std::basic_string< Char >(), folly::pushmi::reduce_fn::operator()(), folly::pushmi::for_each_fn::operator()(), folly::pushmi::operators::from_fn::operator()(), folly::pushmi::operators::flow_from_fn::operator()(), folly::small_vector< Observer< T > *, InlineObservers >::operator<(), operator<<(), folly::operator<<(), folly::StringKeyedSetBase< Compare, Alloc >::operator=(), folly::StringKeyedMap< Value, Compare, Alloc >::operator=(), folly::F14VectorSet< Key, Hasher, KeyEqual, Alloc >::operator=(), folly::F14VectorMap< Key, Mapped, Hasher, KeyEqual, Alloc >::operator=(), folly::small_vector< Observer< T > *, InlineObservers >::operator==(), testing::internal::NativeArray< Element >::operator==(), folly::small_vector< Observer< T > *, InlineObservers >::operator[](), folly::basic_fbstring< char >::operator[](), testing::internal::UniversalPrinter< T >::Print(), folly::FutureDAG::remove(), folly::small_vector< Observer< T > *, InlineObservers >::rend(), folly::basic_fbstring< char >::rend(), folly::basic_fbstring< char >::replace(), folly::basic_fbstring< E, T, A, Storage >::replaceAliased(), folly::Range< unsigned char * >::replaceAt(), folly::basic_fbstring< E, T, A, Storage >::replaceImpl(), folly::basic_fbstring< E, T, A, Storage >::replaceImplDiscr(), folly::small_vector< Observer< T > *, InlineObservers >::resize(), folly::basic_fbstring< E, T, A, Storage >::rfind(), folly::Random::seed(), folly::SSLContext::setCipherList(), folly::SSLContext::setSignatureAlgorithms(), folly::small_vector< Observer< T > *, InlineObservers >::shrink_to_fit(), folly::small_vector< Observer< T > *, InlineObservers >::small_vector(), folly::io::test::supportedCodecs(), fizz::test::TEST(), TEST(), folly::BasicFixedString< Char, N >::toRange(), folly::BasicFixedString< Char, N >::toStdString(), folly::tryDecodeVarint(), testing::internal::UniversalPrintArray(), testing::internal::UniversalPrintCharArray(), folly::sorted_vector_set< folly::RequestData * >::upper_bound(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::upper_bound(), proxygen::CodecUtil::validateHeaderValue(), folly::gen::detail::Zip< Container >::Zip(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
auto folly::test::begin | ( | const TestAdlIterable & | instance | ) |
Definition at line 59 of file ForeachTest.cpp.
References folly::test::TestAdlIterable::vec.
int folly::test::createConnectedSocket | ( | int | port | ) |
Definition at line 127 of file ShutdownSocketSetTest.cpp.
References addr, folly::netops::connect(), and folly::netops::socket().
Referenced by runCloseTest(), and runKillTest().
void folly::test::doWork | ( | int | work | ) |
Definition at line 31 of file FlatCombiningTestHelpers.h.
References a, Atom, folly::doNotOptimizeAway(), i, mutex, Mutex, and uint64_t.
Referenced by fc_test().
auto folly::test::end | ( | TestAdlIterable & | instance | ) |
Definition at line 62 of file ForeachTest.cpp.
References folly::test::TestAdlIterable::vec.
Referenced by Add(), folly::addBenchmark(), folly::for_each_detail::adl::adl_end(), folly::basic_fbstring< char >::append(), testing::internal::ArrayAwareFind(), folly::detail::as_sorted(), folly::Range< unsigned char * >::assign(), folly::small_vector< Observer< T > *, InlineObservers >::assign(), folly::basic_fbstring< char >::assign(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::at(), folly::MultiLevelTimeSeries< VT, CT >::avg(), folly::small_vector< Observer< T > *, InlineObservers >::back(), folly::basic_fbstring< char >::back(), BENCHMARK(), folly::Bits< T, Traits >::blockCount(), folly::BucketedTimeSeries< VT, CT >::buckets(), folly::LogName::canonicalize(), folly::small_vector< Observer< T > *, InlineObservers >::cend(), folly::ConcurrentSkipList< T, Comp, NodeAlloc, MAX_HEIGHT >::Accessor::cend(), folly::BasicFixedString< Char, N >::cend(), folly::basic_fbstring< char >::cend(), folly::UnboundedQueue< T, false, 6 >::cleanUpRemainingItems(), folly::small_vector< Observer< T > *, InlineObservers >::clear(), folly::IOBuf::cloneOneInto(), folly::Bits< T, Traits >::count(), folly::AtomicHashMap< int64_t, int64_t >::count(), folly::sorted_vector_set< folly::RequestData * >::count(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::count(), folly::Random::create(), testing::internal::edit_distance::CreateUnifiedDiff(), proxygen::compress::QMINScheme::decode(), proxygen::StructuredHeaders::decodeBase64(), proxygen::HTTPMessage::doHeaderTokenCheck(), folly::StringKeyedSetBase< Compare, Alloc >::emplace(), folly::StringKeyedMap< Value, Compare, Alloc >::emplace(), folly::small_vector< Observer< T > *, InlineObservers >::emplace(), folly::small_vector< Observer< T > *, InlineObservers >::emplace_back(), folly::compression::BitVectorEncoder< Value, SkipValue, kSkipQuantum, kForwardQuantum >::encode(), folly::compression::EliasFanoEncoderV2< Value, SkipValue, kSkipQuantum, kForwardQuantum >::encode(), folly::sorted_vector_set< folly::RequestData * >::equal_range(), folly::Range< unsigned char * >::equals(), folly::StringKeyedSetBase< Compare, Alloc >::erase(), folly::StringKeyedMap< Value, Compare, Alloc >::erase(), folly::sorted_vector_set< folly::RequestData * >::erase(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::erase(), folly::small_vector< Observer< T > *, InlineObservers >::erase(), folly::basic_fbstring< char >::erase(), folly::sorted_vector_set< folly::RequestData * >::find(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::find(), folly::basic_fbstring< E, T, A, Storage >::find_first_not_of(), folly::basic_fbstring< E, T, A, Storage >::find_first_of(), folly::findFirstSet(), testing::internal::FlagToEnvVar(), folly::detail::MemoryIdler::flushLocalMallocCaches(), ForEach< ValueType >::ForEach(), folly::symbolizer::AddressFormatter::format(), folly::CustomLogFormatter::formatMessage(), folly::GlogStyleFormatter::formatMessage(), folly::getGlobalBenchmarkBaselineIndex(), folly::settings::detail::getSavedValue(), testing::internal::GetUnitTestImpl(), folly::LogName::hash(), folly::dynamic::hash(), folly::hash::SpookyHashV1::Hash128(), folly::hash::SpookyHashV2::Hash128(), folly::hash::hash_range(), folly::FormatArg::initSlow(), folly::StringKeyedSetBase< Compare, Alloc >::insert(), folly::StringKeyedMap< Value, Compare, Alloc >::insert(), folly::sorted_vector_set< folly::RequestData * >::insert(), folly::small_vector< Observer< T > *, InlineObservers >::insert(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::insert(), folly::basic_fbstring< char >::isSane(), folly::symbolizer::ElfFile::iterateStrings(), folly::symbolizer::ElfFile::iterateSymbols(), folly::sorted_vector_set< folly::RequestData * >::lower_bound(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::lower_bound(), main(), folly::small_vector< Observer< T > *, InlineObservers >::makeSizeInternal(), testing::internal::BeginEndDistanceIsMatcher< DistanceMatcher >::Impl< Container >::MatchAndExplain(), folly::detail::moveObjectsRight(), folly::detail::notThereYet(), folly::BasicFixedString< Char, N >::operator std::basic_string< Char >(), folly::pushmi::reduce_fn::operator()(), folly::pushmi::for_each_fn::operator()(), folly::pushmi::operators::from_fn::operator()(), folly::BaseFormatter< Derived, containerMode, Args >::operator()(), folly::pushmi::operators::flow_from_fn::operator()(), folly::small_vector< Observer< T > *, InlineObservers >::operator<(), operator<<(), folly::StringKeyedMap< Value, Compare, Alloc >::operator=(), folly::StringKeyedSetBase< Compare, Alloc >::operator=(), folly::F14VectorSet< Key, Hasher, KeyEqual, Alloc >::operator=(), folly::F14VectorMap< Key, Mapped, Hasher, KeyEqual, Alloc >::operator=(), folly::small_vector< Observer< T > *, InlineObservers >::operator==(), folly::StringKeyedMap< Value, Compare, Alloc >::operator[](), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::operator[](), testing::internal::ParseInt32(), folly::parseLeadingNumber(), folly::small_vector< Observer< T > *, InlineObservers >::pop_back(), folly::symbolizer::SymbolizePrinter::printTerse(), std::chrono::PrintTo(), folly::TimeseriesHistogram< T, CT, C >::rate(), folly::MultiLevelTimeSeries< VT, CT >::rate(), folly::small_vector< Observer< T > *, InlineObservers >::rbegin(), folly::basic_fbstring< char >::rbegin(), proxygen::readFileToIOBuf(), readThread(), folly::FutureDAG::remove(), folly::basic_fbstring< E, T, A, Storage >::replaceAliased(), folly::basic_fbstring< E, T, A, Storage >::replaceImpl(), folly::basic_fbstring< E, T, A, Storage >::replaceImplDiscr(), folly::small_vector< Observer< T > *, InlineObservers >::resize(), folly::TimeoutQueue::runInternal(), folly::Random::seed(), testing::internal::UnitTestImpl::set_catch_exceptions(), folly::SSLContext::setCipherList(), folly::SSLContext::setSignatureAlgorithms(), folly::hash::SpookyHashV1::Short(), folly::hash::SpookyHashV2::Short(), folly::small_vector< Observer< T > *, InlineObservers >::shrink_to_fit(), testing::internal::StringStreamToString(), folly::io::test::supportedCodecs(), folly::BenchmarkSuspender::tally(), fizz::test::TEST(), TEST(), TEST_F(), testConnectOptWrite(), folly::BasicFixedString< Char, N >::toRange(), folly::BasicFixedString< Char, N >::toStdString(), folly::io::detail::CursorBase< Cursor, const IOBuf >::totalLength(), folly::tryDecodeVarint(), folly::json_pointer::unescape(), folly::hash::SpookyHashV1::Update(), folly::hash::SpookyHashV2::Update(), folly::sorted_vector_set< folly::RequestData * >::upper_bound(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::upper_bound(), proxygen::CodecUtil::validateHeaderValue(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
auto folly::test::end | ( | const TestAdlIterable & | instance | ) |
Definition at line 65 of file ForeachTest.cpp.
References folly::test::TestAdlIterable::vec.
uint64_t folly::test::fc_test | ( | int | nthreads, |
int | lines, | ||
int | numRecs, | ||
int | work, | ||
int | ops, | ||
bool | combining, | ||
bool | dedicated, | ||
bool | tc, | ||
bool | syncops, | ||
bool | excl = false , |
||
bool | allocAll = false |
||
) |
Definition at line 44 of file FlatCombiningTestHelpers.h.
References BENCHMARK_SUSPEND, count, folly::BenchmarkSuspender::dismiss(), doWork(), i, mutex, now(), nthreads, ops, start, sum(), folly::pushmi::detail::t, tc, threads, uint64_t, and v.
detail::FutexResult folly::test::futexWaitImpl | ( | const detail::Futex< ManualAtomic > * | , |
uint32_t | , | ||
std::chrono::system_clock::time_point const * | , | ||
std::chrono::steady_clock::time_point const * | , | ||
uint32_t | |||
) |
Definition at line 163 of file DistributedMutexTest.cpp.
detail::FutexResult folly::test::futexWaitImpl | ( | const detail::Futex< DeterministicAtomic > * | futex, |
uint32_t | expected, | ||
std::chrono::system_clock::time_point const * | absSystemTimeout, | ||
std::chrono::steady_clock::time_point const * | absSteadyTimeout, | ||
uint32_t | waitMask | ||
) |
Definition at line 310 of file DeterministicSchedule.cpp.
References folly::test::DeterministicSchedule::afterSharedAccess(), folly::test::DeterministicSchedule::beforeSharedAccess(), FOLLY_TEST_DSCHED_VLOG, futexQueues, folly::test::DeterministicSchedule::getRandNumber(), folly::detail::INTERRUPTED, and folly::detail::TIMEDOUT.
detail::FutexResult folly::test::futexWaitImpl | ( | const detail::Futex< test::DeterministicAtomic > * | futex, |
uint32_t | expected, | ||
std::chrono::system_clock::time_point const * | absSystemTime, | ||
std::chrono::steady_clock::time_point const * | absSteadyTime, | ||
uint32_t | waitMask | ||
) |
int folly::test::futexWakeImpl | ( | const detail::Futex< ManualAtomic > * | , |
int | , | ||
uint32_t | |||
) |
Futex extensions for ManualAtomic
Note that doing nothing in these should still result in a program that is well defined, since futex wait calls should be tolerant to spurious wakeups
Definition at line 159 of file DistributedMutexTest.cpp.
int folly::test::futexWakeImpl | ( | const detail::Futex< test::DeterministicAtomic > * | futex, |
int | count, | ||
uint32_t | wakeMask | ||
) |
Definition at line 384 of file DeterministicSchedule.cpp.
References folly::test::DeterministicSchedule::afterSharedAccess(), folly::test::DeterministicSchedule::beforeSharedAccess(), count, FOLLY_TEST_DSCHED_VLOG, and futexQueues.
|
inline |
Use these patterns together with CaptureFD and EXPECT_PCRE_MATCH() to test for the presence (or absence) of log lines at a particular level:
CaptureFD stderr(2); LOG(INFO) << "All is well"; EXPECT_NO_PCRE_MATCH(glogErrOrWarnPattern(), stderr.readIncremental()); LOG(ERROR) << "Uh-oh"; EXPECT_PCRE_MATCH(glogErrorPattern(), stderr.readIncremental());
Definition at line 205 of file TestUtil.h.
Referenced by TEST().
|
inline |
Definition at line 212 of file TestUtil.h.
Referenced by TEST().
|
inline |
Definition at line 208 of file TestUtil.h.
Referenced by TEST().
folly::test::MATCHER_P | ( | BufMatches | , |
expected | , | ||
"" | |||
) |
Definition at line 54 of file WriteChainAsyncTransportWrapperTest.cpp.
References folly::eq.
auto folly::test::msvcSuppressAbortOnInvalidParams | ( | Func | func | ) | -> decltype(func()) |
Definition at line 166 of file TestUtil.h.
References folly::test::detail::disableInvalidParameters(), folly::test::detail::enableInvalidParameters(), and SCOPE_EXIT.
Referenced by folly::WriteErrorCallback::readDataAvailable(), TEST(), and TEST_F().
bool folly::test::operator== | ( | const MovableInt & | a, |
const MovableInt & | b | ||
) |
Definition at line 58 of file TupleOpsTest.cpp.
References folly::test::MovableInt::value().
Referenced by TEST().
void folly::test::run_basic_test | ( | ) |
Definition at line 29 of file BatonTestHelpers.h.
References Atom, b, folly::Baton< MayBlock, Atom >::post(), and folly::Baton< MayBlock, Atom >::wait().
void folly::test::run_basic_timed_wait_tests | ( | ) |
Definition at line 57 of file BatonTestHelpers.h.
References Atom, b, EXPECT_TRUE, now(), folly::Baton< MayBlock, Atom >::post(), and folly::Baton< MayBlock, Atom >::try_wait_until().
void folly::test::run_pingpong_test | ( | int | numRounds | ) |
Definition at line 36 of file BatonTestHelpers.h.
References a, Atom, b, i, folly::test::DeterministicSchedule::join(), and folly::test::DeterministicSchedule::thread().
uint64_t folly::test::run_test | ( | int | nthreads, |
int | lines, | ||
int | numRecs, | ||
int | work, | ||
int | ops, | ||
bool | combining, | ||
bool | simple, | ||
bool | dedicated, | ||
bool | tc, | ||
bool | syncops, | ||
bool | excl = false , |
||
bool | allocAll = false |
||
) |
Definition at line 180 of file FlatCombiningTestHelpers.h.
References dedicated, folly::gen::lines(), M, mutex, nthreads, ops, syncops, and tc.
Referenced by BENCHMARK(), BENCHMARK_RELATIVE(), test(), and TEST_P().
void folly::test::run_timed_wait_regular_test | ( | ) |
Definition at line 77 of file BatonTestHelpers.h.
References b, EXPECT_TRUE, folly::test::DeterministicSchedule::join(), now(), folly::Baton< MayBlock, Atom >::post(), folly::test::DeterministicSchedule::thread(), folly::Baton< MayBlock, Atom >::try_wait_until(), and folly::value().
void folly::test::run_timed_wait_tmo_tests | ( | ) |
Definition at line 65 of file BatonTestHelpers.h.
References Atom, b, EXPECT_FALSE, folly::test::DeterministicSchedule::join(), now(), folly::test::DeterministicSchedule::thread(), and folly::Baton< MayBlock, Atom >::try_wait_until().
void folly::test::run_try_wait_tests | ( | ) |
Definition at line 108 of file BatonTestHelpers.h.
References b, EXPECT_FALSE, EXPECT_TRUE, folly::Baton< MayBlock, Atom >::post(), folly::Baton< MayBlock, Atom >::ready(), and folly::Baton< MayBlock, Atom >::try_wait().
void folly::test::runCloseTest | ( | bool | abortive | ) |
Definition at line 139 of file ShutdownSocketSetTest.cpp.
References c, folly::netops::close(), folly::test::Server::closeClients(), createConnectedSocket(), EXPECT_EQ, folly::test::Server::join(), folly::test::Server::port(), fizz::detail::read(), and folly::test::Server::stop().
Referenced by TEST().
void folly::test::runKillTest | ( | bool | abortive | ) |
Definition at line 175 of file ShutdownSocketSetTest.cpp.
References c, folly::netops::close(), folly::test::Server::closeClients(), createConnectedSocket(), EXPECT_EQ, folly::test::Server::join(), folly::test::Server::port(), fizz::detail::read(), and folly::ShutdownSocketSet::shutdownAll().
Referenced by TEST().
unsigned folly::test::staticTracepointTestFunc | ( | unsigned | v | ) |
Definition at line 24 of file StaticTracepointTestModule.cpp.
References FOLLY_SDT_WITH_SEMAPHORE, and v.
Referenced by TEST().
folly::test::TEST | ( | AtomicBitSet | , |
Simple | |||
) |
Definition at line 26 of file AtomicBitSetTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, i, folly::AtomicBitSet< N >::reset(), folly::AtomicBitSet< N >::set(), and folly::AtomicBitSet< N >::size().
folly::test::TEST | ( | TupleOps | , |
Copiable | |||
) |
Definition at line 27 of file TupleOpsTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, std::tr1::make_tuple(), string, folly::pushmi::detail::t, folly::tuplePrepend(), and folly::value().
folly::test::TEST | ( | MPMCPipeline | , |
Trivial | |||
) |
Definition at line 30 of file MPMCPipelineTest.cpp.
References a, folly::MPMCPipeline< In, Stages >::blockingRead(), folly::MPMCPipeline< In, Stages >::blockingReadStage(), folly::MPMCPipeline< In, Stages >::blockingWrite(), folly::MPMCPipeline< In, Stages >::blockingWriteStage(), EXPECT_EQ, s, folly::MPMCPipeline< In, Stages >::sizeGuess(), string, ticket, and val.
folly::test::TEST | ( | Overload | , |
BoostVariant | |||
) |
Definition at line 36 of file OverloadTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, folly::test::One::toString(), folly::value(), and folly::variant_match().
folly::test::TEST | ( | ExceptionTest | , |
Simple | |||
) |
Definition at line 39 of file ExceptionTest.cpp.
References ASSERT_TRUE, folly::checkFopenError(), folly::checkFopenErrorExplicit(), folly::checkKernelError(), folly::checkPosixError(), folly::checkUnixError(), folly::checkUnixErrorExplicit(), EXPECT_NO_THROW, EXPECT_SYSTEM_ERROR, folly::test::TemporaryDirectory::path(), SCOPE_EXIT, folly::throwSystemError(), and folly::throwSystemErrorExplicit().
folly::test::TEST | ( | MPMCPipeline | , |
TrivialAmplification | |||
) |
Definition at line 51 of file MPMCPipelineTest.cpp.
References a, folly::MPMCPipeline< In, Stages >::blockingRead(), folly::MPMCPipeline< In, Stages >::blockingReadStage(), folly::MPMCPipeline< In, Stages >::blockingWrite(), folly::MPMCPipeline< In, Stages >::blockingWriteStage(), EXPECT_EQ, s, folly::MPMCPipeline< In, Stages >::sizeGuess(), string, ticket, and val.
folly::test::TEST | ( | Overload | , |
DiscriminatedPtr | |||
) |
Definition at line 53 of file OverloadTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, folly::test::One::toString(), folly::value(), and folly::variant_match().
folly::test::TEST | ( | RecordIOTest | , |
Simple | |||
) |
Definition at line 57 of file RecordIOTest.cpp.
References ASSERT_FALSE, folly::RecordIOReader::begin(), folly::RecordIOReader::end(), EXPECT_EQ, EXPECT_TRUE, folly::test::TemporaryFile::fd(), folly::gen::first, and folly::RecordIOWriter::write().
folly::test::TEST | ( | WriteChainAsyncTransportWrapperTest | , |
TestSimpleIov | |||
) |
Definition at line 59 of file WriteChainAsyncTransportWrapperTest.cpp.
References testing::_, folly::IOBuf::copyBuffer(), EXPECT_CALL, and folly::WriteChainAsyncTransportWrapper< T >::writev().
folly::test::TEST | ( | TupleOps | , |
Movable | |||
) |
Definition at line 62 of file TupleOpsTest.cpp.
References EXPECT_TRUE, std::tr1::make_tuple(), folly::test::MovableInt::MovableInt(), folly::gen::move, string, folly::T, folly::tuplePrepend(), and tupleTo().
folly::test::TEST | ( | ProgramOptionsTest | , |
Errors | |||
) |
Definition at line 67 of file NestedCommandLineAppTest.cpp.
Referenced by TEST().
folly::test::TEST | ( | WriteChainAsyncTransportWrapperTest | , |
TestChainedIov | |||
) |
Definition at line 69 of file WriteChainAsyncTransportWrapperTest.cpp.
References testing::_, folly::IOBuf::copyBuffer(), EXPECT_CALL, and folly::WriteChainAsyncTransportWrapper< T >::writev().
folly::test::TEST | ( | Varint | , |
Interface | |||
) |
folly::test::TEST | ( | ProgramOptionsTest | , |
GFlagsStyleDefaultValues | |||
) |
folly::test::TEST | ( | ProgramOptionsTest | , |
Help | |||
) |
Definition at line 74 of file NestedCommandLineAppTest.cpp.
folly::test::TEST | ( | Overload | , |
Pattern | |||
) |
Definition at line 77 of file OverloadTest.cpp.
References folly::apply_visitor(), EXPECT_FALSE, EXPECT_TRUE, folly::overload(), and folly::variant_match().
folly::test::TEST | ( | MPMCPipeline | , |
MultiThreaded | |||
) |
Definition at line 78 of file MPMCPipelineTest.cpp.
References a, folly::MPMCPipeline< In, Stages >::blockingRead(), folly::MPMCPipeline< In, Stages >::blockingReadStage(), folly::MPMCPipeline< In, Stages >::blockingWrite(), folly::MPMCPipeline< In, Stages >::blockingWriteStage(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, i, folly::MPMCPipeline< In, Stages >::read(), folly::MPMCPipeline< In, Stages >::sizeGuess(), string, folly::pushmi::detail::t, threads, ticket, and val.
folly::test::TEST | ( | ProgramOptionsTest | , |
GFlagsStyleFlagsSet | |||
) |
folly::test::TEST | ( | WriteChainAsyncTransportWrapperTest | , |
TestSimpleBuf | |||
) |
Definition at line 80 of file WriteChainAsyncTransportWrapperTest.cpp.
References testing::_, folly::IOBuf::copyBuffer(), EXPECT_CALL, and folly::WriteChainAsyncTransportWrapper< T >::write().
folly::test::TEST | ( | Varint | , |
Simple | |||
) |
Definition at line 88 of file VarintTest.cpp.
References testVarint().
folly::test::TEST | ( | RecordIOTest | , |
SmallRecords | |||
) |
Definition at line 93 of file RecordIOTest.cpp.
References ASSERT_FALSE, folly::RecordIOReader::begin(), folly::RecordIOReader::end(), EXPECT_EQ, EXPECT_TRUE, folly::test::TemporaryFile::fd(), folly::gen::first, i, folly::IOBuf::wrapBuffer(), and folly::RecordIOWriter::write().
folly::test::TEST | ( | ProgramOptionsTest | , |
DevFull | |||
) |
Definition at line 93 of file NestedCommandLineAppTest.cpp.
References folly::File::fd().
folly::test::TEST | ( | ExceptionTest | , |
makeSystemError | |||
) |
Definition at line 95 of file ExceptionTest.cpp.
References folly::Range< Iter >::contains(), EXPECT_EQ, EXPECT_TRUE, folly::makeSystemError(), and folly::makeSystemErrorExplicit().
folly::test::TEST | ( | ProgramOptionsTest | , |
GFlagsStyleBoolFlagsNegation | |||
) |
folly::test::TEST | ( | ProgramOptionsTest | , |
CutArguments | |||
) |
folly::test::TEST | ( | Varint | , |
Fail | |||
) |
Definition at line 110 of file VarintTest.cpp.
References testVarintFail().
folly::test::TEST | ( | ProgramOptionsTest | , |
GNUStyleDefaultValues | |||
) |
folly::test::TEST | ( | ProgramOptionsTest | , |
Success | |||
) |
folly::test::TEST | ( | ZigZag | , |
Simple | |||
) |
Definition at line 114 of file VarintTest.cpp.
References folly::BENCHMARK(), folly::decodeVarint(), folly::decodeZigZag(), folly::Range< Iter >::empty(), folly::encodeVarint(), folly::encodeZigZag(), EXPECT_EQ, i, folly::INFO, folly::kMaxVarintLength64, folly::range(), rng, start, uint64_t, uint8_t, and val.
folly::test::TEST | ( | RecordIOTest | , |
MultipleFileIds | |||
) |
Definition at line 115 of file RecordIOTest.cpp.
References ASSERT_FALSE, folly::RecordIOReader::begin(), folly::RecordIOReader::end(), EXPECT_EQ, EXPECT_TRUE, folly::test::TemporaryFile::fd(), folly::gen::first, and folly::RecordIOWriter::write().
folly::test::TEST | ( | ProgramOptionsTest | , |
GNUStyleFlagsSet | |||
) |
folly::test::TEST | ( | ProgramOptionsTest | , |
Aliases | |||
) |
folly::test::TEST | ( | ProgramOptionsTest | , |
GNUStyleBoolFlagsNegation | |||
) |
folly::test::TEST | ( | TupleOps | , |
TupleTo | |||
) |
folly::test::TEST | ( | ProgramOptionsTest | , |
BuiltinCommand | |||
) |
Definition at line 147 of file NestedCommandLineAppTest.cpp.
References ASSERT_FALSE, ASSERT_TRUE, folly::NestedCommandLineApp::isBuiltinCommand(), folly::NestedCommandLineApp::kHelpCommand, folly::NestedCommandLineApp::kVersionCommand, and folly::Range< Iter >::str().
folly::test::TEST | ( | TupleOps | , |
TupleTo2 | |||
) |
folly::test::TEST | ( | ProgramOptionsTest | , |
GNUStyleSubCommand | |||
) |
folly::test::TEST | ( | RecordIOTest | , |
ExtraMagic | |||
) |
Definition at line 163 of file RecordIOTest.cpp.
References ASSERT_FALSE, folly::RecordIOReader::begin(), folly::RecordIOReader::end(), EXPECT_EQ, EXPECT_TRUE, folly::test::TemporaryFile::fd(), folly::gen::first, folly::recordio_helpers::headerSize(), folly::recordio_helpers::recordio_detail::Header::kMagic, fizz::detail::read(), uint32_t, uint8_t, val, folly::RecordIOWriter::write(), and fizz::detail::write().
folly::test::TEST | ( | ShutdownSocketSetTest | , |
OrderlyClose | |||
) |
folly::test::TEST | ( | ShutdownSocketSetTest | , |
AbortiveClose | |||
) |
folly::test::TEST | ( | ProgramOptionsTest | , |
GNUStyleSubCommandUnrecognizedOptionFirst | |||
) |
folly::test::TEST | ( | RecordIOTest | , |
Randomized | |||
) |
Definition at line 197 of file RecordIOTest.cpp.
References ASSERT_LT, folly::basic_fbstring< E, T, A, Storage >::clear(), EXPECT_EQ, folly::test::TemporaryFile::fd(), folly::RecordIOWriter::filePos(), folly::gen::first, folly::recordio_helpers::headerSize(), i, k, folly::gen::move, folly::basic_fbstring< E, T, A, Storage >::push_back(), records, folly::basic_fbstring< E, T, A, Storage >::reserve(), SCOPED_TRACE, folly::basic_fbstring< E, T, A, Storage >::size(), and folly::RecordIOWriter::write().
folly::test::TEST | ( | ShutdownSocketSetTest | , |
OrderlyKill | |||
) |
folly::test::TEST | ( | ShutdownSocketSetTest | , |
AbortiveKill | |||
) |
folly::test::TEST | ( | FileUtilTest2 | , |
wrapv | |||
) |
Definition at line 248 of file FileUtilTest.cpp.
References ASSERT_EQ, EXPECT_EQ, folly::test::TemporaryFile::fd(), i, int32_t, folly::test::IovecBuffers::iov(), folly::test::IovecBuffers::size(), sizes, sum(), and folly::fileutil_detail::wrapvFull().
folly::test::TEST | ( | String | , |
readFile | |||
) |
Definition at line 276 of file FileUtilTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, folly::test::TemporaryFile::path(), folly::readFile(), and folly::writeFile().
folly::test::TEST_F | ( | FileUtilTest | , |
read | |||
) |
Definition at line 163 of file FileUtilTest.cpp.
References EXPECT_EQ, folly::test::FileUtilTest::in_, folly::test::FileUtilTest::readers_, string, and folly::fileutil_detail::wrapFull().
Referenced by TEST_F(), and fizz::test::TEST_F().
folly::test::TEST_F | ( | FileUtilTest | , |
pread | |||
) |
Definition at line 173 of file FileUtilTest.cpp.
References EXPECT_EQ, folly::test::FileUtilTest::in_, folly::test::FileUtilTest::readers_, string, and folly::fileutil_detail::wrapFull().
folly::test::TEST_F | ( | FileUtilTest | , |
readv | |||
) |
Definition at line 235 of file FileUtilTest.cpp.
References ASSERT_EQ, EXPECT_EQ, folly::test::FileUtilTest::in_, folly::test::FileUtilTest::readers_, and folly::fileutil_detail::wrapvFull().
folly::test::TEST_F | ( | FileUtilTest | , |
preadv | |||
) |
Definition at line 262 of file FileUtilTest.cpp.
References ASSERT_EQ, EXPECT_EQ, folly::test::FileUtilTest::in_, folly::test::FileUtilTest::readers_, and folly::fileutil_detail::wrapvFull().
folly::test::TEST_F | ( | ReadFileFd | , |
ReadZeroBytes | |||
) |
Definition at line 317 of file FileUtilTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, folly::readFile(), and string.
folly::test::TEST_F | ( | ReadFileFd | , |
ReadPartial | |||
) |
Definition at line 323 of file FileUtilTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, folly::readFile(), and string.
folly::test::TEST_F | ( | ReadFileFd | , |
ReadFull | |||
) |
Definition at line 329 of file FileUtilTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, folly::readFile(), and string.
folly::test::TEST_F | ( | ReadFileFd | , |
WriteOnlyFd | |||
) |
Definition at line 335 of file FileUtilTest.cpp.
References EXPECT_FALSE, f, folly::INFO, folly::readFile(), and string.
folly::test::TEST_F | ( | ReadFileFd | , |
InvalidFd | |||
) |
Definition at line 342 of file FileUtilTest.cpp.
References EXPECT_FALSE, f, folly::INFO, msvcSuppressAbortOnInvalidParams(), folly::readFile(), and string.
folly::test::TEST_F | ( | WriteFileAtomic | , |
writeNew | |||
) |
Definition at line 394 of file FileUtilTest.cpp.
References EXPECT_EQ, and folly::writeFileAtomic().
folly::test::TEST_F | ( | WriteFileAtomic | , |
overwrite | |||
) |
Definition at line 406 of file FileUtilTest.cpp.
References EXPECT_EQ, string, and folly::writeFileAtomic().
folly::test::TEST_F | ( | WriteFileAtomic | , |
directoryPermissions | |||
) |
Definition at line 444 of file FileUtilTest.cpp.
References EXPECT_EQ, EXPECT_THROW, SCOPE_EXIT, and folly::writeFileAtomic().
folly::test::TEST_F | ( | WriteFileAtomic | , |
multipleFiles | |||
) |
Definition at line 482 of file FileUtilTest.cpp.
References EXPECT_EQ, EXPECT_THROW, fail(), mode, TEST_F(), and folly::writeFileAtomic().
Definition at line 35 of file VarintTest.cpp.
References folly::decodeVarint(), folly::Range< Iter >::empty(), folly::encodeVarint(), folly::encodeVarintSize(), EXPECT_EQ, EXPECT_TRUE, folly::kMaxVarintLength64, folly::Range< Iter >::size(), uint64_t, and uint8_t.
Referenced by TEST().
void folly::test::testVarintFail | ( | std::initializer_list< uint8_t > | bytes | ) |
Definition at line 103 of file VarintTest.cpp.
References folly::data(), EXPECT_FALSE, and folly::tryDecodeVarint().
Referenced by TEST().
U folly::test::tupleTo | ( | const T & | input | ) |
Definition at line 105 of file TupleOpsTest.cpp.
Referenced by TEST().
U folly::test::tupleTo2 | ( | const T & | input | ) |
Definition at line 130 of file TupleOpsTest.cpp.
Referenced by TEST().
|
static |
Definition at line 45 of file DeterministicSchedule.cpp.
|
static |
Definition at line 43 of file DeterministicSchedule.cpp.
Referenced by futexWaitImpl(), and futexWakeImpl().
ShutdownSocketSet folly::test::shutdownSocketSet |
Definition at line 34 of file ShutdownSocketSetTest.cpp.
Referenced by folly::AsyncServerSocket::bind(), folly::AsyncSocket::connect(), folly::AsyncSocket::doClose(), folly::AsyncSocket::setShutdownSocketSet(), folly::AsyncServerSocket::setShutdownSocketSet(), folly::AsyncServerSocket::setupSocket(), and folly::AsyncServerSocket::stopAccepting().