Celeritas 0.7.0-dev.226+develop.a6a728ea
Loading...
Searching...
No Matches
Namespaces | Macros
GenericGeoTestInterface.cc File Reference
#include "GenericGeoTestInterface.hh"
#include <gtest/gtest.h>
#include "corecel/io/Logger.hh"
#include "corecel/math/ArrayOperators.hh"
#include "corecel/math/ArrayUtils.hh"
#include "corecel/math/SoftEqual.hh"
#include "geocel/Types.hh"
#include "geocel/UnitUtils.hh"
#include "geocel/VolumeParams.hh"
#include "geocel/inp/Model.hh"
#include "CheckedGeoTrackView.hh"
#include "GenericGeoResults.hh"
#include "PersistentSP.hh"
#include "TestMacros.hh"

Namespaces

namespace  celeritas::test
 Test harness base class for optical physics.
 

Macros

#define GGTI_EXPECT_NO_THROW(ACTION)
 

Macro Definition Documentation

◆ GGTI_EXPECT_NO_THROW

#define GGTI_EXPECT_NO_THROW (   ACTION)
Value:
try \
{ \
ACTION; \
} \
catch (CheckedGeoError const& e) \
{ \
auto const& d = e.details(); \
auto msg = CELER_LOG(debug); \
msg << "Failed "; \
if (!d.condition.empty()) \
{ \
msg << '\'' << d.condition << "' "; \
} \
msg << "at " << d.file << ':' << d.line << " during '" << #ACTION \
<< "'"; \
ADD_FAILURE() << d.what; \
return result; \
} \
catch (std::exception const& e) \
{ \
ADD_FAILURE() << "Caught exception during '" << #ACTION \
<< "': " << e.what() << ": " << geo; \
return result; \
}
#define CELER_LOG(LEVEL)
Return a LogMessage object for streaming into at the given level.
Definition corecel/io/Logger.hh:47