#include "boost/test/unit_test.hpp"
#include "cetlib/BasicPluginFactory.h"
#include "cetlib/PluginTypeDeducer.h"
#include "cetlib/test/TestPluginBase.h"
#include "cetlib_except/exception.h"
#include <memory>
#include <string>
Go to the source code of this file.
#define BOOST_TEST_MODULE (PluginFactory_t) |
BOOST_AUTO_TEST_CASE |
( |
checkType |
| ) |
|
Definition at line 36 of file PluginFactory_t.cc.
39 PluginTypeDeducer_v<cettest::TestPluginBase>);
41 PluginTypeDeducer_v<cettest::TestPluginBase>);
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
checkMaker |
| ) |
|
Definition at line 44 of file PluginFactory_t.cc.
46 auto p = pf.makePlugin<std::unique_ptr<cettest::TestPluginBase>,
std::string>(
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
CheckFinder |
| ) |
|
Definition at line 51 of file PluginFactory_t.cc.
static LibraryManager::nothrow_t nothrow
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
checkError |
| ) |
|
Definition at line 62 of file PluginFactory_t.cc.
64 BOOST_CHECK_EXCEPTION(pf.makePlugin<std::unique_ptr<cettest::TestPluginBase>>(
65 "TestPluginX"s,
"Hi"s),
68 return e.category() ==
"Configuration" &&
69 std::string{e.what()}.find(
"ETERNAL") !=
cet::coded_exception< error, detail::translate > exception