11 #ifndef TEST_INTERFACE_MODELAUXCONTROL_H_
12 #define TEST_INTERFACE_MODELAUXCONTROL_H_
18 #define ECKIT_TESTING_SELF_REGISTER_CASES 0
20 #include <boost/noncopyable.hpp>
22 #include "eckit/config/LocalConfiguration.h"
23 #include "eckit/testing/Test.h"
44 return theModelAuxControlFixture;
56 std::unique_ptr<const eckit::LocalConfiguration>
conf_;
66 std::unique_ptr<ModelAux_> bias(
new ModelAux_(Test_::resol(), Test_::config()));
76 typedef ModelAuxControlFixture<MODEL> Test_;
79 std::unique_ptr<ModelAux_> bias(
new ModelAux_(Test_::resol(), Test_::config()));
81 std::unique_ptr<ModelAux_> other(
new ModelAux_(*bias));
96 std::unique_ptr<ModelAux_> bias(
new ModelAux_(Test_::resol(), Test_::config()));
98 std::unique_ptr<ModelAux_> other(
new ModelAux_(Test_::resol(), *bias));
102 EXPECT(!other.get());
109 template <
typename MODEL>
115 std::string
testid()
const override {
return "test::ModelAuxControl<" + MODEL::name() +
">";}
118 std::vector<eckit::testing::Test>& ts = eckit::testing::specification();
120 ts.emplace_back(
CASE(
"interface/ModelAuxControl/testConstructor")
121 { testConstructor<MODEL>(); });
122 ts.emplace_back(
CASE(
"interface/ModelAuxControl/testCopyConstructor")
123 { testCopyConstructor<MODEL>(); });
124 ts.emplace_back(
CASE(
"interface/ModelAuxControl/testChangeRes")
125 { testChangeRes<MODEL>(); });
135 #endif // TEST_INTERFACE_MODELAUXCONTROL_H_