108 { {
"Olympus_15061-1b_v165", 0x0131553c }, [](
const DB_OBJ& obj )
112 const auto& blk =
static_cast<const UNKNOWN_0x20&
>( obj );
113 BOOST_TEST( blk.m_Next.m_TargetKey == 0x824DF8F0 );
128 const auto& testFunc = it->second;
147 const auto& testFunc = it->second;
The base class for all blocks in the main body of an Allegro file.
uint8_t GetBlockType() const
static constexpr std::size_t hash_val(const Types &... args)
void RunAdditionalObjectTest(const std::string &aBoardName, size_t aBlockOffset, const ALLEGRO::DB_OBJ &aDbObj)
Look up and run any additional ad-hoc tests for a DB_OBJ (parsed and converted block)
void RunAdditionalBlockTest(const std::string &aBoardName, size_t aBlockOffset, const ALLEGRO::BLOCK_BASE &aBlock)
Look up and run any additional ad-hoc tests for a block.
A DB_OBJ represents one object in an Allegro database.
Unique key for identifying a block test, used for looking up additional validation functions.
bool operator==(const BLOCK_TEST_KEY &other) const
size_t operator()(const BLOCK_TEST_KEY &key) const
static const std::unordered_map< BLOCK_TEST_KEY, DB_OBJ_TEST_FUNC > additionalDbObjTests
static void TestOlympus0x20(const BLOCK_BASE &aBlock)
std::function< void(const DB_OBJ &)> DB_OBJ_TEST_FUNC
std::function< void(const BLOCK_BASE &)> BLOCK_TEST_FUNC
static const std::unordered_map< BLOCK_TEST_KEY, BLOCK_TEST_FUNC > additionalBlockTests
The registry of additional block tests, keyed by board name and block offset.
BOOST_TEST(contains==c.ExpectedContains)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_TEST_MESSAGE("Polyline has "<< chain.PointCount()<< " points")