KiCad PCB EDA Suite
Loading...
Searching...
No Matches
lib_field_test_utils.h File Reference

Test utils (e.g. More...

Go to the source code of this file.

Namespaces

namespace  KI_TEST
 

Functions

std::ostream & boost_test_print_type (std::ostream &os, SCH_FIELD const &f)
 
std::ostream & boost_test_print_type (std::ostream &os, std::vector< SCH_FIELD > const &f)
 
bool KI_TEST::FieldNameIdMatches (const SCH_FIELD &aField, const std::string &aExpectedName, int aExpectedId)
 Predicate to check a field name is as expected.
 
bool KI_TEST::AreDefaultFieldsCorrect (const std::vector< SCH_FIELD > &aFields)
 Predicate to check that the mandatory fields look sensible.
 

Detailed Description

Test utils (e.g.

print helpers and test predicates for SCH_FIELD objects

Definition in file lib_field_test_utils.h.

Function Documentation

◆ boost_test_print_type() [1/2]

std::ostream & boost_test_print_type ( std::ostream &  os,
SCH_FIELD const &  f 
)

Definition at line 38 of file lib_field_test_utils.h.

References SCH_FIELD::GetCanonicalName().

◆ boost_test_print_type() [2/2]

std::ostream & boost_test_print_type ( std::ostream &  os,
std::vector< SCH_FIELD > const &  f 
)

Definition at line 44 of file lib_field_test_utils.h.