KiCad PCB EDA Suite
|
General utilities for DRC-related PCB tests. More...
Go to the source code of this file.
Namespaces | |
namespace | KI_TEST |
Functions | |
std::ostream & | operator<< (std::ostream &os, const PCB_MARKER &aMarker) |
Define a stream function for logging PCB_MARKER test assertions. More... | |
bool | KI_TEST::IsDrcMarkerOfType (const PCB_MARKER &aMarker, int aErrorCode) |
Predicate for testing the type of a DRC marker. More... | |
General utilities for DRC-related PCB tests.
Definition in file drc_test_utils.h.
std::ostream & operator<< | ( | std::ostream & | os, |
const PCB_MARKER & | aMarker | ||
) |
Define a stream function for logging PCB_MARKER test assertions.
This has to be in the same namespace as PCB_MARKER
Note: this assumes there is not a operator<< for this type in the main Pcbnew library. If one is introduced there, this one should be removed.
TODO: convert to boost_test_print_type when Boost minver > 1.64. This will keep testing logging and application-level operator<< implementations separate, as they should be.
Definition at line 27 of file drc_test_utils.cpp.
References MARKER_BASE::GetRCItem().