42 TEST_CASE(
"EstimatorManagerInput::testInserts",
"[estimators]")
44 using namespace testing;
66 TEST_CASE(
"EstimatorManagerInput::readXML",
"[estimators]")
68 using namespace testing;
77 std::string bad_estimator = R
"XML( 78 <estimator type="NeutrinoDensity" name="bad_estimator"/> 83 int max_node_recurse = 1;
98 TEST_CASE(
"EstimatorManagerInput::moveFromEstimatorInputs",
"[estimators]")
100 using namespace testing;
128 TEST_CASE(
"EstimatorManagerInput::moveConstructor",
"[estimators]")
130 using namespace testing;
139 CHECK(emi_moved_to.get_estimator_inputs().size() == 2);
140 CHECK(emi_moved_to.get_scalar_estimator_inputs().size() == 5);
143 TEST_CASE(
"EstimatorManagerInput::MergeConstructor",
"[estimators]")
145 using namespace testing;
152 CHECK(emi_merged.get_estimator_inputs().size() == 2);
153 CHECK(emi_merged.get_scalar_estimator_inputs().size() == 6);
class that handles xmlDoc
ScalarEstimatorInputs & get_scalar_estimator_inputs()
helper functions for EinsplineSetBuilder
declares the list supported estimator input types and declares the input type for EstimatorManagerNew...
if(!okay) throw std xmlNodePtr node
Libxml2Document createEstimatorManagerNewInputXML()
TEST_CASE("complex_helper", "[type_traits]")
EstimatorManagerInput emi(estimators_doc.getRoot())
Libxml2Document createEstimatorManagerNewGlobalInputXML()
static constexpr std::array< std::string_view, 3 > xml
Native representation for DensityMatrices1B Estimator's inputs.
REQUIRE(std::filesystem::exists(filename))
Compilation units that construct QMCDriverInput need visibility to the actual input classes types in ...
This a subclass for runtime errors that will occur on all ranks.
void appendEstimatorInput(xmlNodePtr node)
OneBodyDensityMatricesInput obdmi(node)
EstimatorInputs & get_estimator_inputs()
Native representation for Spin Density Estimators inputs.
TakesAMovedInput(INPUT &&obdmi)
Libxml2Document estimators_doc
bool parseFromString(const std::string_view data)
Input type for EstimatorManagerNew Parses Estimators level of input and and delegates child estimator...
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
void addChild(xmlNodePtr newnode)
void testAppendFromXML(EstimatorManagerInput &emi, xmlNodePtr node)
"" useful for this new implementation