#include "cetlib/LibraryManager.h"
#include "boost/test/unit_test.hpp"
#include "cetlib/test/LibraryManagerTestFunc.h"
#include "cetlib_except/exception.h"
#include <iterator>
#include <string>
#include <vector>
Go to the source code of this file.
BOOST_AUTO_TEST_CASE |
( |
libSpecsVector |
| ) |
|
Definition at line 48 of file LibraryManager_t.cc.
50 std::vector<std::string> lib_list;
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
libSpecsIter |
| ) |
|
Definition at line 54 of file LibraryManager_t.cc.
56 std::vector<std::string> lib_list;
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
libListVector |
| ) |
|
Definition at line 60 of file LibraryManager_t.cc.
62 std::vector<std::string> lib_list;
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
libListIter |
| ) |
|
Definition at line 66 of file LibraryManager_t.cc.
68 std::vector<std::string> lib_list;
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
getSymbolLong |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
getSymbolShort |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
getSymbolPathPrecedence |
| ) |
|
Definition at line 85 of file LibraryManager_t.cc.
87 BOOST_CHECK_NO_THROW(lm_ref.getSymbolByLibspec<
void*>(
"1/1/1",
"idString"));
BOOST_AUTO_TEST_CASE |
( |
getSymbolAmbiguity |
| ) |
|
Definition at line 90 of file LibraryManager_t.cc.
92 BOOST_CHECK_EXCEPTION(
93 lm_ref.getSymbolByLibspec<
void*>(
"3",
"idString"),
95 [](
cet::exception const&
e) { return e.category() ==
"Configuration"; });
cet::coded_exception< error, detail::translate > exception
BOOST_AUTO_TEST_CASE |
( |
getSymbolNoAmbiguity1 |
| ) |
|
Definition at line 110 of file LibraryManager_t.cc.
115 BOOST_CHECK_NO_THROW(
118 verify(libspecA, idString);
119 BOOST_CHECK_NO_THROW(
122 verify(libspecB, idString);
123 BOOST_CHECK_NO_THROW(
126 verify(libspecA, idString);
std::string(*)( idString_t)
BOOST_AUTO_TEST_CASE |
( |
getSymbolNoAmbiguity2 |
| ) |
|
Definition at line 129 of file LibraryManager_t.cc.
134 BOOST_CHECK_NO_THROW(
137 verify(libspecA, idString);
138 BOOST_CHECK_NO_THROW(
141 verify(libspecB, idString);
142 BOOST_CHECK_NO_THROW(
145 verify(libspecA, idString);
std::string(*)( idString_t)
BOOST_AUTO_TEST_CASE |
( |
dictLoadable |
| ) |
|
Definition at line 148 of file LibraryManager_t.cc.
150 std::vector<std::string> lib_list;
151 lm_ref.getLoadableLibraries(lib_list);
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
dictLoadableButNotLoaded |
| ) |
|
Definition at line 155 of file LibraryManager_t.cc.
157 std::vector<std::string> lib_list;
158 lm_ref.getLoadableLibraries(lib_list);
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
loadAllLibraries |
| ) |
|
BOOST_AUTO_TEST_CASE |
( |
dictLoaded |
| ) |
|
Definition at line 168 of file LibraryManager_t.cc.
170 std::vector<std::string> lib_list;
171 lm_ref.getLoadableLibraries(lib_list);
172 lm_ref.loadAllLibraries();
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
BOOST_AUTO_TEST_CASE |
( |
dictNotLoadable |
| ) |
|
Definition at line 176 of file LibraryManager_t.cc.
178 std::vector<std::string> lib_list;
179 lm_ref.getLoadableLibraries(lib_list);
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))