KiCad PCB EDA Suite
No Matches
drc_test_utils.cpp File Reference
#include "drc_test_utils.h"

Go to the source code of this file.


namespace  KI_TEST


std::ostream & operator<< (std::ostream &os, const PCB_MARKER &aMarker)
 Define a stream function for logging PCB_MARKER test assertions.
bool KI_TEST::IsDrcMarkerOfType (const PCB_MARKER &aMarker, int aErrorCode)
 Predicate for testing the type of a DRC marker.

Function Documentation

◆ operator<<()

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(), and operator<<().