10 #include "eckit/config/LocalConfiguration.h"
11 #include "eckit/testing/Test.h"
17 #include "oops/util/Expect.h"
22 CASE(
"test_linearmodelparameterswrapper_valid_name") {
25 EXPECT_NO_THROW(parameters.validateAndDeserialize(config));
28 CASE(
"test_linearmodelparameterswrapper_invalid_name") {
31 if (oops::Parameters::isValidationSupported())
32 EXPECT_THROWS_MSG(parameters.validate(config),
"unrecognized enum value");
33 EXPECT_THROWS_MSG(parameters.deserialize(config),
34 "does not exist in the linear model factory");
37 CASE(
"test_linearmodelfactory") {
39 std::vector<std::string>{
"L95TLM"});
53 std::string
testid()
const override {
return "test::LinearModelFactory";}
62 int main(
int argc,
char **argv) {
int main(int argc, char **argv)
LocsL95 class to handle locations for L95 model.
Contains a polymorphic parameter holding an instance of a subclass of LinearModelParametersBase.
Run encapsulates one OOPS run.
int execute(const Application &)
void clear() const override
void register_tests() const override
std::string testid() const override
static const eckit::Configuration & config()
CASE("test_linearmodelparameterswrapper_valid_name")