25#ifndef QA_EESCHEMA_LIB_FIELD_TEST_UTILS__H
26#define QA_EESCHEMA_LIB_FIELD_TEST_UTILS__H
42 os <<
"SCH_FIELDS[ " << f.size() <<
" ]";
62 if( gotName != aExpectedName )
64 BOOST_TEST_INFO(
"Field name: got '" << gotName <<
"', expected '" << aExpectedName );
68 const int gotId = (int) aField.
GetId();
70 if( gotId != aExpectedId )
72 BOOST_TEST_INFO(
"Field ID: got '" << gotId <<
"', expected '" << aExpectedId );
84 const unsigned expectedCount = 5;
86 if( aFields.size() < expectedCount )
88 BOOST_TEST_INFO(
"Expected at least " << expectedCount <<
" fields, got " << aFields.size() );
wxString GetCanonicalName() const
Get a non-language-specific name for a field which can be used for storage, variable look-up,...
std::ostream & boost_test_print_type(std::ostream &os, SCH_FIELD const &f)
bool AreDefaultFieldsCorrect(const std::vector< SCH_FIELD > &aFields)
Predicate to check that the mandatory fields look sensible.
bool FieldNameIdMatches(const SCH_FIELD &aField, const std::string &aExpectedName, int aExpectedId)
Predicate to check a field name is as expected.
@ FOOTPRINT
Field Name Module PCB, i.e. "16DIP300".
@ DATASHEET
name of datasheet
@ REFERENCE
Field Reference of part, i.e. "IC21".
@ VALUE
Field Value of part, i.e. "3.3K".
BOOST_TEST_INFO("Two-port Series .op current = "<< iDevice)