|
KiCad PCB EDA Suite
|
A single block of test data, along with the expected result of parsing it. More...
#include <allegro_block_tests.h>
Public Attributes | |
| uint8_t | m_BlockType |
| The type of the block, as in the first byte. | |
| size_t | m_BlockOffset |
| The offset within the board file where this block is located (used for error messages) | |
| bool | m_Skip |
| Whether to skip this test while parsers don't support a certain format. | |
| std::string | m_DataSource |
| The raw bytes of the block, as copied from the file. | |
| 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. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const BLK_TEST_INFO &aTestInfo) |
A single block of test data, along with the expected result of parsing it.
Definition at line 59 of file allegro_block_tests.h.
|
friend |
Definition at line 72 of file allegro_block_tests.h.
References m_BlockOffset, and m_BlockType.
| size_t KI_TEST::BLK_TEST_INFO::m_BlockOffset |
The offset within the board file where this block is located (used for error messages)
Definition at line 64 of file allegro_block_tests.h.
Referenced by operator<<, and ALLEGRO_BLOCK_TEST_FIXTURE::RunBlockTest().
| uint8_t KI_TEST::BLK_TEST_INFO::m_BlockType |
The type of the block, as in the first byte.
Definition at line 62 of file allegro_block_tests.h.
Referenced by operator<<, and ALLEGRO_BLOCK_TEST_FIXTURE::RunBlockTest().
| std::string KI_TEST::BLK_TEST_INFO::m_DataSource |
The raw bytes of the block, as copied from the file.
Definition at line 68 of file allegro_block_tests.h.
Referenced by ALLEGRO_BLOCK_TEST_FIXTURE::RunBlockTest().
| bool KI_TEST::BLK_TEST_INFO::m_Skip |
Whether to skip this test while parsers don't support a certain format.
Definition at line 66 of file allegro_block_tests.h.
Referenced by ALLEGRO_BLOCK_TEST_FIXTURE::RunBlockTest().
| std::function<void( const ALLEGRO::BLOCK_BASE& )> KI_TEST::BLK_TEST_INFO::m_ValidateFunc |
An optional function to validate the contents of the parsed block if parsing is expected to succeed.
Definition at line 70 of file allegro_block_tests.h.
Referenced by ALLEGRO_BLOCK_TEST_FIXTURE::RunBlockTest().