KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KI_TEST::BLK_TEST_INFO Struct Reference

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)
 

Detailed Description

A single block of test data, along with the expected result of parsing it.

Definition at line 59 of file allegro_block_tests.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const BLK_TEST_INFO & aTestInfo )
friend

Definition at line 72 of file allegro_block_tests.h.

References m_BlockOffset, and m_BlockType.

Member Data Documentation

◆ m_BlockOffset

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().

◆ m_BlockType

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().

◆ m_DataSource

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().

◆ m_Skip

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().

◆ m_ValidateFunc

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().


The documentation for this struct was generated from the following file: