|
proxygen
|
#include <condition_variable>#include <mutex>#include <sstream>#include <stdexcept>#include <thread>#include <folly/experimental/exception_tracer/ExceptionCounterLib.h>#include <folly/portability/GTest.h>Go to the source code of this file.
Classes | |
| class | MyException |
Functions | |
| void | bar () |
| void | foo () |
| void | baz () |
| template<typename F > | |
| void | throwAndCatch (F f) |
| TEST (ExceptionCounter, oneThread) | |
| TEST (ExceptionCounter, testClearExceptionStatistics) | |
| TEST (ExceptionCounter, testDifferentStacks) | |
| TEST (ExceptionCounter, multyThreads) | |
| void bar | ( | ) |
Definition at line 29 of file ExceptionCounterTest.cpp.
| void baz | ( | ) |
| void foo | ( | ) |
Definition at line 33 of file ExceptionCounterTest.cpp.
References MyException::MyException().
Referenced by baz().
| TEST | ( | ExceptionCounter | , |
| oneThread | |||
| ) |
Definition at line 53 of file ExceptionCounterTest.cpp.
References count, EXPECT_EQ, folly::exception_tracer::getExceptionStatistics(), i, deadlock::info(), and throwAndCatch().
| TEST | ( | ExceptionCounter | , |
| testClearExceptionStatistics | |||
| ) |
Definition at line 69 of file ExceptionCounterTest.cpp.
References EXPECT_EQ, folly::exception_tracer::getExceptionStatistics(), and throwAndCatch().
| TEST | ( | ExceptionCounter | , |
| testDifferentStacks | |||
| ) |
Definition at line 77 of file ExceptionCounterTest.cpp.
References baz(), EXPECT_EQ, folly::exception_tracer::getExceptionStatistics(), and throwAndCatch().
| TEST | ( | ExceptionCounter | , |
| multyThreads | |||
| ) |
Definition at line 84 of file ExceptionCounterTest.cpp.
References count, EXPECT_EQ, folly::exception_tracer::getExceptionStatistics(), i, kNumThreads, folly::detail::lock(), mutex, folly::pushmi::detail::t, threads, and throwAndCatch().
| void throwAndCatch | ( | F | f | ) |