51 os << descr.ToStdString();
74 wxString msg = wxString::Format(
"Block type %#02x at offset %#010zx", aTestInfo.
m_BlockType,
76 os << msg.ToStdString();
The base class for all blocks in the main body of an Allegro file.
FMT_VER
The format of an Allego file.
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.
A single block of test data, along with the expected result of parsing it.
std::function< void(const ALLEGRO::BLOCK_BASE &)> m_ValidateFunc
An optional function to validate the contents of the parsed block if parsing is expected to succeed.
std::string m_DataSource
The raw bytes of the block, as copied from the file.
size_t m_BlockOffset
The offset within the board file where this block is located (used for error messages)
uint8_t m_BlockType
The type of the block, as in the first byte.
bool m_Skip
Whether to skip this test while parsers don't support a certain format.
friend std::ostream & operator<<(std::ostream &os, const BLK_TEST_INFO &aTestInfo)
std::string m_BrdName
The name of the board being tested, used for error messages and test context.
std::vector< BLK_TEST_INFO > m_BlockTests
std::unique_ptr< BOARD_EXPECTATION_TEST > m_BrdExpectations
std::unique_ptr< HEADER_TEST_INFO > m_HeaderTest
ALLEGRO::FMT_VER m_FormatVersion
The version of the Allegro format that this board is in.
std::string m_FilePath
The filename of the board being tested.