https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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

namespace  Moose
 MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to address this in their environment if C++17 compatibility isn't found.
 
namespace  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.
 
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.