1 #define BOOST_TEST_MODULE (FriendlyName_t) 2 #include "boost/test/unit_test.hpp" 10 typedef std::map<std::string, std::string> fnmap_t;
21 nameMap.insert(std::make_pair(
"Foo",
"Foo"));
22 nameMap.insert(std::make_pair(
"bar::Foo",
"bar::Foo"));
23 nameMap.insert(std::make_pair(
"std::vector<Foo>",
"Foos"));
24 nameMap.insert(std::make_pair(
"std::vector<bar::Foo>",
"bar::Foos"));
25 nameMap.insert(std::make_pair(
"V<A,B>",
"ABV"));
27 std::make_pair(
"art::Wrapper<MuonDigiCollection<CSCDetId,CSCALCTDigi> >",
28 "CSCDetIdCSCALCTDigiMuonDigiCollection"));
29 nameMap.insert(std::make_pair(
"A<B<C>,D<E> >",
"CBEDA"));
30 nameMap.insert(std::make_pair(
"A<B<C<D> > >",
"DCBA"));
31 nameMap.insert(std::make_pair(
"A<B<C,D>,E<F> >",
"CDBFEA"));
32 nameMap.insert(std::make_pair(
"Aa<Bb<Cc>,Dd<Ee> >",
"CcBbEeDdAa"));
33 nameMap.insert(std::make_pair(
"Aa<Bb<Cc<Dd> > >",
"DdCcBbAa"));
34 nameMap.insert(std::make_pair(
"Aa<Bb<Cc,Dd>,Ee<Ff> >",
"CcDdBbFfEeAa"));
35 nameMap.insert(std::make_pair(
"Aa<Bb<Cc,Dd>,Ee<Ff,Gg> >",
"CcDdBbFfGgEeAa"));
36 nameMap.insert(std::make_pair(
"cet::map_vector_key",
"mvk"));
37 nameMap.insert(std::make_pair(
"cet::map_vector<Foo>",
"Foomv"));
38 nameMap.insert(std::make_pair(
"art::Assns<Ll,Rr,Dd>",
"LlRrDdart::Assns"));
39 nameMap.insert(std::make_pair(
"art::Assns<Rr,Ll,Dd>",
"LlRrDdart::Assns"));
46 for (
auto const& pr :
nameMap) {
51 BOOST_AUTO_TEST_SUITE_END()
std::string friendlyName(std::string const &iFullName)
FriendlyNameTestFixture()
BOOST_AUTO_TEST_CASE(FriendlyName_t)