Commit ba130381 authored by Carsten Kemena's avatar Carsten Kemena

adding formats support list to DASetReader

parent 566bb5de
......@@ -128,7 +128,7 @@ class DASetReader
formats.reserve(strategies_.size());
for (const auto &strategy : strategies_)
{
for (const auto &format : strategy.second->formats())
for (const auto &format : strategy->formats())
{
formats.emplace_back(format);
}
......
......@@ -40,6 +40,10 @@ BOOST_AUTO_TEST_CASE( readPfam )
BOOST_CHECK_THROW(reader.read("../tests/domain/data_new/NOTEXISTENT"), std::ios_base::failure);
BOOST_CHECK_EXCEPTION(reader.read("../tests/domain/data_new/BB20012.pfamScan_formatError") , BioSeqDataLib::FormatException, formatIsBroken);
BOOST_CHECK_EXCEPTION(reader.read("../tests/domain/data_new/test.fasta") , BioSeqDataLib::FormatException, isUnsupported);
auto formats = reader.supportedFormats();
BOOST_CHECK_EQUAL(formats[0], "PfamScan");
}
BOOST_AUTO_TEST_SUITE_END()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment