proxygen
|
Classes | |
class | ElfCacheTest |
Functions | |
void | writeAll (int fd, const char *str) |
void | expect (LineReader &lr, const char *expected) |
TEST (LineReader, Simple) | |
TEST (SignalHandler, Simple) | |
void | failHard () |
void | foo () |
TEST (Symbolizer, Single) | |
int | comparator (const void *ap, const void *bp) |
FOLLY_NOINLINE void | bar () |
void | bar (FrameArray< 100 > &frames) |
void | runElfCacheTest (Symbolizer &symbolizer) |
TEST_F (ElfCacheTest, TinyElfCache) | |
TEST_F (ElfCacheTest, SignalSafeElfCache) | |
TEST (SymbolizerTest, SymbolCache) | |
Variables | |
FrameArray< 100 > * | framesToFill {nullptr} |
FrameArray< 100 > | goldenFrames |
FOLLY_NOINLINE void folly::symbolizer::test::bar | ( | ) |
Definition at line 29 of file ExceptionCounterTest.cpp.
Referenced by baz(), comparator(), foo(), folly::symbolizer::test::ElfCacheTest::SetUp(), TEST(), and testExceptionPtr1().
void folly::symbolizer::test::bar | ( | FrameArray< 100 > & | frames | ) |
Definition at line 69 of file SymbolizerTest.cpp.
References a, comparator(), and framesToFill.
int folly::symbolizer::test::comparator | ( | const void * | ap, |
const void * | bp | ||
) |
Definition at line 58 of file SymbolizerTest.cpp.
References a, b, bar(), FOLLY_NOINLINE, framesToFill, and folly::symbolizer::getStackTrace().
Referenced by bar(), testing::internal::BoundSecondMatcher< Tuple2Matcher, Second >::Impl< T >::MatchAndExplain(), and testing::WhenSortedBy().
void folly::symbolizer::test::expect | ( | LineReader & | lr, |
const char * | expected | ||
) |
Definition at line 36 of file LineReaderTest.cpp.
References EXPECT_EQ, folly::symbolizer::LineReader::kEof, folly::symbolizer::LineReader::kReading, folly::symbolizer::LineReader::readLine(), folly::Range< Iter >::size(), folly::Range< Iter >::str(), and string.
Referenced by folly::AtomicHashArray< KeyT, ValueT, HashFcn, EqualFcn, Allocator, ProbeFcn, KeyConvertFcn >::erase(), TEST(), TEST(), folly::io::test::TEST_P(), folly::RWSpinLock::try_lock(), folly::RWSpinLock::try_unlock_upgrade_and_lock(), folly::AtomicHashArray< KeyT, ValueT, HashFcn, EqualFcn, Allocator, ProbeFcn, KeyConvertFcn >::tryLockCell(), UpdateSyncState::waitForUpdate(), and PollerWithState::waitForUpdate().
|
inline |
Definition at line 23 of file SignalHandlerTest.h.
Referenced by TEST().
void folly::symbolizer::test::foo | ( | ) |
Definition at line 29 of file SymbolizerTest.cpp.
void folly::symbolizer::test::runElfCacheTest | ( | Symbolizer & | symbolizer | ) |
Definition at line 93 of file SymbolizerTest.cpp.
References ASSERT_LE, EXPECT_STREQ, folly::symbolizer::FrameArray< N >::frameCount, folly::symbolizer::FrameArray< N >::frames, goldenFrames, i, and folly::symbolizer::Symbolizer::symbolize().
Referenced by TEST_F().
folly::symbolizer::test::TEST | ( | Symbolizer | , |
Single | |||
) |
Definition at line 31 of file SymbolizerTest.cpp.
References a, folly::Range< Iter >::advance(), ASSERT_TRUE, folly::symbolizer::SymbolizedFrame::demangledName(), EXPECT_EQ, folly::symbolizer::Dwarf::LocationInfo::file, folly::symbolizer::SymbolizedFrame::location, folly::Range< const char * >::npos, folly::Range< Iter >::rfind(), folly::Range< Iter >::str(), folly::symbolizer::Symbolizer::symbolize(), and folly::symbolizer::Dwarf::Path::toString().
folly::symbolizer::test::TEST | ( | SignalHandler | , |
Simple | |||
) |
Definition at line 45 of file SignalHandlerTest.cpp.
References folly::symbolizer::addFatalSignalCallback(), failHard(), folly::symbolizer::installFatalSignalCallbacks(), and folly::symbolizer::installFatalSignalHandler().
folly::symbolizer::test::TEST | ( | LineReader | , |
Simple | |||
) |
Definition at line 46 of file LineReaderTest.cpp.
References expect(), folly::test::TemporaryFile::fd(), and writeAll().
folly::symbolizer::test::TEST | ( | SymbolizerTest | , |
SymbolCache | |||
) |
Definition at line 122 of file SymbolizerTest.cpp.
References bar(), EXPECT_STREQ, folly::symbolizer::FrameArray< N >::frameCount, folly::symbolizer::FrameArray< N >::frames, folly::symbolizer::Dwarf::FULL, i, and folly::symbolizer::Symbolizer::symbolize().
folly::symbolizer::test::TEST_F | ( | ElfCacheTest | , |
TinyElfCache | |||
) |
Definition at line 105 of file SymbolizerTest.cpp.
References i, and runElfCacheTest().
folly::symbolizer::test::TEST_F | ( | ElfCacheTest | , |
SignalSafeElfCache | |||
) |
Definition at line 114 of file SymbolizerTest.cpp.
References i, and runElfCacheTest().
void folly::symbolizer::test::writeAll | ( | int | fd, |
const char * | str | ||
) |
Definition at line 31 of file LineReaderTest.cpp.
References folly::writeFull().
Referenced by TEST().
FrameArray<100>* folly::symbolizer::test::framesToFill {nullptr} |
Definition at line 56 of file SymbolizerTest.cpp.
Referenced by bar(), and comparator().
FrameArray<100> folly::symbolizer::test::goldenFrames |
Definition at line 83 of file SymbolizerTest.cpp.
Referenced by runElfCacheTest().