Namespaces | |
Detail | |
detail | |
Generators | |
literals | |
Matchers | |
Typedefs | |
template<typename Func , typename... U> | |
using | FunctionReturnType = typename std::remove_reference< typename std::remove_cv< typename std::result_of< Func(U...)>::type >::type >::type |
using | IReporterFactoryPtr = std::shared_ptr< IReporterFactory > |
using | exceptionTranslateFunction = std::string(*)() |
using | ExceptionTranslators = std::vector< std::unique_ptr< IExceptionTranslator const > > |
using | StringMatcher = Matchers::Impl::MatcherBase< std::string > |
using | IConfigPtr = std::shared_ptr< IConfig const > |
Enumerations | |
enum class | Verbosity { Quiet = 0 , Normal , High } |
Functions | |
unsigned int | rngSeed () |
std::ostream & | operator<< (std::ostream &os, SourceLineInfo const &info) |
template<typename T > | |
T const & | operator+ (T const &value, StreamEndStop) |
bool | isThrowSafe (TestCase const &testCase, IConfig const &config) |
bool | matchTest (TestCase const &testCase, TestSpec const &testSpec, IConfig const &config) |
std::vector< TestCase > | filterTests (std::vector< TestCase > const &testCases, TestSpec const &testSpec, IConfig const &config) |
std::vector< TestCase > const & | getAllTestCasesSorted (IConfig const &config) |
auto | operator+= (std::string &lhs, StringRef const &sr) -> std::string & |
auto | operator<< (std::ostream &os, StringRef const &sr) -> std::ostream & |
constexpr auto | operator""_sr (char const *rawChars, std::size_t size) noexcept -> StringRef |
auto | makeTestInvoker (void(*testAsFunction)()) noexcept -> ITestInvoker * |
template<typename C > | |
auto | makeTestInvoker (void(C::*testAsMethod)()) noexcept -> ITestInvoker * |
bool | isOk (ResultWas::OfType resultType) |
bool | isJustInfo (int flags) |
ResultDisposition::Flags | operator| (ResultDisposition::Flags lhs, ResultDisposition::Flags rhs) |
bool | shouldContinueOnFailure (int flags) |
bool | isFalseTest (int flags) |
bool | shouldSuppressFailure (int flags) |
std::ostream & | cout () |
std::ostream & | cerr () |
std::ostream & | clog () |
auto | makeStream (StringRef const &filename) -> IStream const * |
template<typename Range > | |
std::string | rangeToString (Range const &range) |
template<typename Allocator > | |
std::string | rangeToString (std::vector< bool, Allocator > const &v) |
void | formatReconstructedExpression (std::ostream &os, std::string const &lhs, StringRef op, std::string const &rhs) |
template<typename LhsT , typename RhsT > | |
auto | compareEqual (LhsT const &lhs, RhsT const &rhs) -> bool |
template<typename T > | |
auto | compareEqual (T *const &lhs, int rhs) -> bool |
template<typename T > | |
auto | compareEqual (T *const &lhs, long rhs) -> bool |
template<typename T > | |
auto | compareEqual (int lhs, T *const &rhs) -> bool |
template<typename T > | |
auto | compareEqual (long lhs, T *const &rhs) -> bool |
template<typename LhsT , typename RhsT > | |
auto | compareNotEqual (LhsT const &lhs, RhsT &&rhs) -> bool |
template<typename T > | |
auto | compareNotEqual (T *const &lhs, int rhs) -> bool |
template<typename T > | |
auto | compareNotEqual (T *const &lhs, long rhs) -> bool |
template<typename T > | |
auto | compareNotEqual (int lhs, T *const &rhs) -> bool |
template<typename T > | |
auto | compareNotEqual (long lhs, T *const &rhs) -> bool |
void | handleExpression (ITransientExpression const &expr) |
template<typename T > | |
void | handleExpression (ExprLhs< T > const &expr) |
IResultCapture & | getResultCapture () |
void | handleExceptionMatchExpr (AssertionHandler &handler, std::string const &str, StringRef const &matcherString) |
auto | getCurrentNanosecondsSinceEpoch () -> uint64_t |
auto | getEstimatedClockResolution () -> uint64_t |
IRegistryHub const & | getRegistryHub () |
IMutableRegistryHub & | getMutableRegistryHub () |
void | cleanUp () |
std::string | translateActiveException () |
bool | startsWith (std::string const &s, std::string const &prefix) |
bool | startsWith (std::string const &s, char prefix) |
bool | endsWith (std::string const &s, std::string const &suffix) |
bool | endsWith (std::string const &s, char suffix) |
bool | contains (std::string const &s, std::string const &infix) |
void | toLowerInPlace (std::string &s) |
std::string | toLower (std::string const &s) |
std::string | trim (std::string const &str) |
Returns a new string without whitespace at the start/end. More... | |
StringRef | trim (StringRef ref) |
Returns a substring of the original ref without whitespace. Beware lifetimes! More... | |
std::vector< StringRef > | splitStringRef (StringRef str, char delimiter) |
bool | replaceInPlace (std::string &str, std::string const &replaceThis, std::string const &withThis) |
void | handleExceptionMatchExpr (AssertionHandler &handler, StringMatcher const &matcher, StringRef const &matcherString) |
template<typename ArgT , typename MatcherT > | |
auto | makeMatchExpr (ArgT const &arg, MatcherT const &matcher, StringRef const &matcherString) -> MatchExpr< ArgT, MatcherT > |
void | throw_exception (std::exception const &e) |
void | throw_logic_error (std::string const &msg) |
void | throw_domain_error (std::string const &msg) |
void | throw_runtime_error (std::string const &msg) |
IMutableContext & | getCurrentMutableContext () |
IContext & | getCurrentContext () |
void | cleanUpContext () |
SimplePcg32 & | rng () |
TestCase | makeTestCase (ITestInvoker *testCase, std::string const &className, NameAndTags const &nameAndTags, SourceLineInfo const &lineInfo) |
struct Catch::is_callable |
struct Catch::AssertionInfo |
Class Members | ||
---|---|---|
StringRef | capturedExpression | |
SourceLineInfo | lineInfo | |
StringRef | macroName | |
Flags | resultDisposition |
struct Catch::TestFailureException |
struct Catch::AssertionReaction |
struct Catch::SectionEndInfo |
Class Members | ||
---|---|---|
double | durationInSeconds | |
Counts | prevAssertions | |
SectionInfo | sectionInfo |
using Catch::exceptionTranslateFunction = typedef std::string(*)() |
using Catch::ExceptionTranslators = typedef std::vector<std::unique_ptr<IExceptionTranslator const> > |
using Catch::FunctionReturnType = typedef typename std::remove_reference<typename std::remove_cv<typename std::result_of<Func(U...)>::type>::type>::type |
typedef std::shared_ptr< IConfig const > Catch::IConfigPtr |
using Catch::IReporterFactoryPtr = typedef std::shared_ptr<IReporterFactory> |
using Catch::StringMatcher = typedef Matchers::Impl::MatcherBase<std::string> |
|
strong |
std::ostream& Catch::cerr | ( | ) |
Referenced by MagAOX::app::MagAOXApp< _useINDI >::MagAOXApp(), MagAOX::app::std::cerr<< "setProperty cb for gizmos"<< std::endl;auto it=gizmos.begin();while(it !=gizmos.end()) { pcf::IndiProperty *gizmoPtr=*it;pcf::IndiProperty theGizmo=*gizmoPtr;if(ipName==theGizmo.getName()) { std::cerr<< "Adjusting prop "<< ipName<< std::endl;if(ipRecv.find("target")) { double currentPos=theGizmo["current"].get< double >(), MagAOX::app::picamCtrl::acquireAndCheckValid(), MagAOX::app::dev::dmPokeWFS< derivedT >::allocate(), MagAOX::app::alignLoop::allocate(), MagAOX::app::hoPredCtrl::allocate(), MagAOX::app::modalPSDs::allocate(), MagAOX::app::refRMS::allocate(), MagAOX::app::streamWriter::allocate_xrif(), MagAOX::app::dmPokeCenter::analyzeSensor(), MagAOX::app::dmPokeXCorr::analyzeSensor(), MagAOX::app::adcTracker::appLogic(), MagAOX::app::bmcCtrl::appLogic(), MagAOX::app::kcubeCtrl::appLogic(), MagAOX::app::kTracker::appLogic(), MagAOX::app::refRMS::appLogic(), MagAOX::app::stateRuleEngine::appLogic(), MagAOX::app::zaberLowLevel::appLogic(), MagAOX::app::dev::dm< derivedT, realT >::appLogic(), MagAOX::app::adcTracker::appStartup(), MagAOX::app::indiTSAccumulator::appStartup(), MagAOX::app::mzmqServer::appStartup(), MagAOX::app::timeSeriesSimulator::appStartup(), MagAOX::app::xindiserver::appStartup(), MagAOX::app::andorCtrl::cameraSelect(), MagAOX::logger::logMeta::card(), MagAOX::app::siglentSDG::changeAmp(), MagAOX::app::siglentSDG::changeFreq(), MagAOX::app::MagAOXApp< _useINDI >::checkConfig(), MagAOX::app::baslerCtrl::checkNextROI(), MagAOX::app::qhyCtrl::checkNextROI(), MagAOX::app::streamWriter_test::comp_frames_uint16(), MagAOX::app::ocam2KCtrl::configureAcquisition(), MagAOX::app::picamCtrl::configureAcquisition(), MagAOX::app::zylaCtrl::configureAcquisition(), MagAOX::logger::logFileRaw::createFile(), MagAOX::app::streamWriter::doEncode(), MagAOX::app::pvcamCtrl::dumpEnum(), MagAOX::tty::telnetConn::event_handler(), MagAOX::app::sshDigger::execTunnel(), MagAOX::app::MagAOXApp< _useINDI >::execute(), logdump::execute(), xrif2shmim::execute(), MagAOX::app::streamWriter::fgThreadExec(), MagAOX::app::dev::frameGrabber< derivedT >::fgThreadExec(), MagAOX::app::pvcamCtrl::fillSpeedTable(), MagAOX::app::for(), MagAOX::app::xindiserver::forkIndiserver(), MagAOX::app::sparkleClock::generateSparkleClock(), MagAOX::logger::telem_chrony_stats::getAccessor(), MagAOX::logger::telem_chrony_status::getAccessor(), MagAOX::logger::telem_dmmodes::getAccessor(), MagAOX::logger::telem_dmspeck::getAccessor(), MagAOX::logger::telem_fgtimings::getAccessor(), MagAOX::logger::telem_fxngen::getAccessor(), MagAOX::logger::telem_loopgain::getAccessor(), MagAOX::logger::telem_observer::getAccessor(), MagAOX::logger::telem_pi335::getAccessor(), MagAOX::logger::telem_position::getAccessor(), MagAOX::logger::telem_rhusb::getAccessor(), MagAOX::logger::telem_sparkleclock::getAccessor(), MagAOX::logger::telem_stage::getAccessor(), MagAOX::logger::telem_stdcam::getAccessor(), MagAOX::logger::telem_telcat::getAccessor(), MagAOX::logger::telem_teldata::getAccessor(), MagAOX::logger::telem_telpos::getAccessor(), MagAOX::logger::telem_zaber::getAccessor(), MagAOX::logger::user_log::getAccessor(), MagAOX::app::tcsInterface::getCatData(), MagAOX::app::ocam2KCtrl::getEMGain(), MagAOX::app::smc100ccCtrl::getLastError(), MagAOX::logger::getLogContVal(), MagAOX::logger::getLogStateVal(), MagAOX::logger::logMap::getNextLog(), MagAOX::logger::logMap::getPriorLog(), logdump::gettimes(), MagAOX::app::MagAOXApp< _useINDI >::handlerSigTerm(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_SETCALLBACK_DEFN(), MagAOX::app::streamWriter::initialize_xrif(), MagAOX::app::mzmqClient::loadConfig(), logdump::loadConfig(), MagAOX::logger::logManager< _parentT, _logFileT >::loadConfig(), MagAOX::logger::logInMemory::loadFile(), MagAOX::logger::logMap::loadFiles(), MagAOX::app::zylaCtrl::loadImageIntoStream(), MagAOX::app::MagAOXApp< _useINDI >::lockPID(), MagAOX::tty::telnetConn::login(), MagAOX::logger::logMemberAccessor(), MagAOX::app::MagAOXApp< _useINDI >::logMessage(), MagAOX::logger::logManager< _parentT, _logFileT >::logThreadExec(), main(), MagAOX::logger::flatbuffer_log::msgJSON(), MagAOX::app::picoMotorCtrl::newCallBack_presetName(), MagAOX::app::siglentSDG::normalizeSetup(), MagAOX::app::alpaoCtrl::parse_calibration_file(), MagAOX::app::bmcCtrl::parse_calibration_file(), MagAOX::logger::logFileName::parseName(), MagAOX::app::t2wOffloader::prepareModes(), MagAOX::app::psfFit::processImage(), MagAOX::app::pupilAlign::processImage(), MagAOX::app::pupilFit::processImage(), MagAOX::app::refRMS::processImage(), MagAOX::app::modalPSDs::psdThreadExec(), MagAOX::tty::telnetConn::read(), MagAOX::app::ocam2KCtrl::resetEMProtection(), thSetuid_test::SCENARIO(), MagAOX::app::hoPredCtrl::set_pupil_mask(), MagAOX::app::indiTSAccumulator::setCallBack_all(), MagAOX::app::ocam2KCtrl::setEMGain(), MagAOX::app::pvcamCtrl::setExpTime(), MagAOX::app::zylaCtrl::setExpTime(), MagAOX::app::ocam2KCtrl::setFPS(), MagAOX::app::zylaCtrl::setFPS(), MagAOX::logger::logMeta::setLog(), MagAOX::app::baslerCtrl::setNextROI(), MagAOX::app::qhyCtrl::setNextROI(), MagAOX::app::zylaCtrl::setNextROI(), MagAOX::app::ocam2KCtrl::setSynchro(), MagAOX::app::ocam2KCtrl::setTempControl(), MagAOX::app::ocam2KCtrl::setTempSetPt(), MagAOX::app::zylaCtrl::setTempSetPt(), MagAOX::app::streamWriter_test::setup_circbufs(), sigTermHandler(), flatlogs::timespecX::timeStamp(), MagAOX::tty::ttyRead(), MagAOX::tty::ttyUSBDevName(), MagAOX::tty::ttyWrite(), MagAOX::app::dev::outletController< derivedT >::turnChannelOff(), MagAOX::app::dev::outletController< derivedT >::turnChannelOn(), MagAOX::app::t2wOffloader::updateFPS(), MagAOX::app::timeSeriesSimulator::updateGizmos(), MagAOX::app::indi::updateIfChanged(), MagAOX::app::indi::updateSelectionSwitchIfChanged(), MagAOX::app::indi::updateSwitchIfChanged(), MagAOX::logger::logMeta::value(), MagAOX::logger::logMeta::valueNumber(), MagAOX::logger::logMeta::valueString(), MagAOX::app::waitValue(), MagAOX::tty::telnetConn::write(), and MagAOX::logger::logFileRaw::writeLog().
void Catch::cleanUp | ( | ) |
void Catch::cleanUpContext | ( | ) |
std::ostream& Catch::clog | ( | ) |
auto Catch::compareEqual | ( | int | lhs, |
T *const & | rhs | ||
) | -> bool |
auto Catch::compareEqual | ( | LhsT const & | lhs, |
RhsT const & | rhs | ||
) | -> bool |
Definition at line 2316 of file catch.hpp.
Referenced by Catch::ExprLhs< LhsT >::operator==().
auto Catch::compareEqual | ( | long | lhs, |
T *const & | rhs | ||
) | -> bool |
auto Catch::compareEqual | ( | T *const & | lhs, |
int | rhs | ||
) | -> bool |
auto Catch::compareEqual | ( | T *const & | lhs, |
long | rhs | ||
) | -> bool |
auto Catch::compareNotEqual | ( | int | lhs, |
T *const & | rhs | ||
) | -> bool |
auto Catch::compareNotEqual | ( | LhsT const & | lhs, |
RhsT && | rhs | ||
) | -> bool |
Definition at line 2327 of file catch.hpp.
Referenced by Catch::ExprLhs< LhsT >::operator!=().
auto Catch::compareNotEqual | ( | long | lhs, |
T *const & | rhs | ||
) | -> bool |
auto Catch::compareNotEqual | ( | T *const & | lhs, |
int | rhs | ||
) | -> bool |
auto Catch::compareNotEqual | ( | T *const & | lhs, |
long | rhs | ||
) | -> bool |
bool Catch::contains | ( | std::string const & | s, |
std::string const & | infix | ||
) |
std::ostream& Catch::cout | ( | ) |
Referenced by MagAOX::app::hoPredCtrl::allocate(), MagAOX::app::nnReconstructor::allocate(), MagAOX::app::nnReconstructor::appStartup(), MagAOX::app::andorCtrl::cameraSelect(), MagAOX::app::zylaCtrl::cameraSelect(), MagAOX::app::streamWriter_test::comp_frames_uint16(), MagAOX::app::nnReconstructor::create_engine_context(), MagAOX::app::sysMonitor::criticalCoreTemperature(), MagAOX::app::sysMonitor::criticalDiskTemperature(), logdump::gettimes(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_SETCALLBACK_DEFN(), MagAOX::app::nnReconstructor::load_engine(), MagAOX::app::hoPredCtrl::loadConfigImpl(), MagAOX::app::nnReconstructor::loadConfigImpl(), Logger::log(), main(), logdump::printLogBuff(), logdump::printLogJson(), MagAOX::app::alignLoop::processImage(), MagAOX::app::psfAcq::processImage(), MagAOX::app::hoPredCtrl::processImage(), MagAOX::app::nnReconstructor::processImage(), MagAOX::app::photonCounter::processImage(), MagAOX::app::rhusbMon::readProbe(), MagAOX::app::psfAcq::resetAcq(), outletController_tests::SCENARIO(), MagAOX::app::hoPredCtrl::set_pupil_mask(), MagAOX::app::nnReconstructor::setupConfig(), and MagAOX::app::siglentSDG::writeRead().
bool Catch::endsWith | ( | std::string const & | s, |
char | suffix | ||
) |
bool Catch::endsWith | ( | std::string const & | s, |
std::string const & | suffix | ||
) |
std::vector<TestCase> Catch::filterTests | ( | std::vector< TestCase > const & | testCases, |
TestSpec const & | testSpec, | ||
IConfig const & | config | ||
) |
void Catch::formatReconstructedExpression | ( | std::ostream & | os, |
std::string const & | lhs, | ||
StringRef | op, | ||
std::string const & | rhs | ||
) |
|
inline |
Definition at line 4381 of file catch.hpp.
Referenced by getCurrentContext().
auto Catch::getCurrentNanosecondsSinceEpoch | ( | ) | -> uint64_t |
auto Catch::getEstimatedClockResolution | ( | ) | -> uint64_t |
IMutableRegistryHub& Catch::getMutableRegistryHub | ( | ) |
IRegistryHub const& Catch::getRegistryHub | ( | ) |
IResultCapture& Catch::getResultCapture | ( | ) |
void Catch::handleExceptionMatchExpr | ( | AssertionHandler & | handler, |
std::string const & | str, | ||
StringRef const & | matcherString | ||
) |
void Catch::handleExceptionMatchExpr | ( | AssertionHandler & | handler, |
StringMatcher const & | matcher, | ||
StringRef const & | matcherString | ||
) |
void Catch::handleExpression | ( | ExprLhs< T > const & | expr | ) |
void Catch::handleExpression | ( | ITransientExpression const & | expr | ) |
Referenced by handleExpression().
bool Catch::isJustInfo | ( | int | flags | ) |
bool Catch::isOk | ( | ResultWas::OfType | resultType | ) |
TestCase Catch::makeTestCase | ( | ITestInvoker * | testCase, |
std::string const & | className, | ||
NameAndTags const & | nameAndTags, | ||
SourceLineInfo const & | lineInfo | ||
) |
|
noexcept |
|
noexcept |
bool Catch::matchTest | ( | TestCase const & | testCase, |
TestSpec const & | testSpec, | ||
IConfig const & | config | ||
) |
|
constexprnoexcept |
T const& Catch::operator+ | ( | T const & | value, |
StreamEndStop | |||
) |
auto Catch::operator+= | ( | std::string & | lhs, |
StringRef const & | sr | ||
) | -> std::string & |
std::ostream& Catch::operator<< | ( | std::ostream & | os, |
SourceLineInfo const & | info | ||
) |
auto Catch::operator<< | ( | std::ostream & | os, |
StringRef const & | sr | ||
) | -> std::ostream & |
ResultDisposition::Flags Catch::operator| | ( | ResultDisposition::Flags | lhs, |
ResultDisposition::Flags | rhs | ||
) |
std::string Catch::rangeToString | ( | Range const & | range | ) |
Definition at line 2018 of file catch.hpp.
Referenced by Catch::StringMaker< R, typename std::enable_if< is_range< R >::value &&!::Catch::Detail::IsStreamInsertable< R >::value >::type >::convert(), and Catch::StringMaker< T[SZ]>::convert().
std::string Catch::rangeToString | ( | std::vector< bool, Allocator > const & | v | ) |
Definition at line 2024 of file catch.hpp.
Referenced by rangeToString().
bool Catch::replaceInPlace | ( | std::string & | str, |
std::string const & | replaceThis, | ||
std::string const & | withThis | ||
) |
SimplePcg32& Catch::rng | ( | ) |
unsigned int Catch::rngSeed | ( | ) |
bool Catch::shouldContinueOnFailure | ( | int | flags | ) |
bool Catch::shouldSuppressFailure | ( | int | flags | ) |
bool Catch::startsWith | ( | std::string const & | s, |
char | prefix | ||
) |
bool Catch::startsWith | ( | std::string const & | s, |
std::string const & | prefix | ||
) |
void Catch::throw_domain_error | ( | std::string const & | msg | ) |
void Catch::throw_exception | ( | std::exception const & | e | ) |
void Catch::throw_logic_error | ( | std::string const & | msg | ) |
void Catch::throw_runtime_error | ( | std::string const & | msg | ) |
std::string Catch::toLower | ( | std::string const & | s | ) |
void Catch::toLowerInPlace | ( | std::string & | s | ) |
std::string Catch::translateActiveException | ( | ) |
std::string Catch::trim | ( | std::string const & | str | ) |
Returns a new string without whitespace at the start/end.