9 #include <mva/utility/Utility.h>
10 #include <framework/utilities/TestHelpers.h>
11 #include <framework/database/Configuration.h>
12 #include <framework/database/Database.h>
18 TEST(AvailableTest, Available)
23 conf.overrideGlobalTags();
24 conf.prependTestingPayloadLocation(
"localdb/database.txt");
31 EXPECT_FALSE(MVA::available(
"DOES_NOT_EXIST.root"));
32 EXPECT_FALSE(MVA::available(
"DOES_NOT_EXIST.xml"));
33 EXPECT_FALSE(MVA::available(
"DOES_NOT_EXIST"));
34 EXPECT_TRUE(MVA::available(
"MVAInterfaceTest.root"));
35 EXPECT_TRUE(MVA::available(
"MVAInterfaceTest.xml"));
36 EXPECT_TRUE(MVA::available(
"MVAInterfaceTest"));
static Configuration & getInstance()
Get a reference to the instance which will be used when the Database is initialized.
The Weightfile class serializes all information about a training into an xml tree.
static void save(Weightfile &weightfile, const std::string &filename, const Belle2::IntervalOfValidity &iov=Belle2::IntervalOfValidity(0, 0, -1, -1))
Static function which saves a Weightfile to a file.
changes working directory into a newly created directory, and removes it (and contents) on destructio...
TEST(TestgetDetectorRegion, TestgetDetectorRegion)
Test Constructors.
static void reset(bool keepConfig=false)
Reset the database instance.
Abstract base class for different kinds of events.