https://mooseframework.inl.gov
Classes | Namespaces | Functions
MooseUnitUtils.h File Reference

Go to the source code of this file.

Classes

class  Moose::UnitUtils::TempFile
 Create a temporary file and delete it upon destruction. More...
 

Namespaces

 Moose::UnitUtils
 

Functions

template<class ExceptionType = std::exception, class Action = bool>
void Moose::UnitUtils::assertThrows (const Action &action, const std::optional< std::string > &contains={}, const bool set_throw_on_error=false)
 A helper for asserting that calling something throws an exception. More...
 
template<typename ExceptionType , bool exact, bool assert, bool set_throw_on_error, typename Func >
void Moose::UnitUtils::throwsWithMessage (Func &&fn, const std::string_view message, const char *file, int line)
 Helper for the [EXPECT,ASSERT]_[MOOSEERROR,THROW]_[MSG,MSG_CONTAINS] macros. More...