19 #include <boost/test/unit_test.hpp>
24 namespace architecture {
26 BOOST_AUTO_TEST_SUITE(architecture)
52 const_cast<Pad&
>(pads1[index++]) = pad1;
54 const_cast<Pad&
>(pads1[index++]) = pad2;
56 const_cast<Pad&
>(pads1[index++]) = pad3;
57 BOOST_CHECK_EQUAL(package1.
getName(), name);
60 BOOST_CHECK_EQUAL(pads2[index++].getName(), pad1.
getName());
61 BOOST_CHECK_EQUAL(pads2[index++].getName(), pad2.
getName());
62 BOOST_CHECK_EQUAL(pads2[index++].getName(), pad3.
getName());
71 BOOST_CHECK_EQUAL(package2.getName(),
"");
72 BOOST_CHECK_EQUAL(package2.getPads().getSize(), 0u);
75 BOOST_AUTO_TEST_SUITE_END()
const string & getName(void) const
Returns the name of the pad in its physical package.
Encapsulation of the site index, pin name, and pin flags for a package.
Encapsulation of a physical device package and its pins.
PadNameToPadIndexMap mPadNameToPadIndex
The map from pad names to corresponding map indexes.
BOOST_AUTO_TEST_CASE(ArcUnitTest)
Unit test for the Arc class.
const string & getName(void) const
Returns the package name.
Encapsulation of site attribute flags in an unsigned 16-bit integer.
PadIndex findPadIndexByName(const string &inName) const
Returns the pad index corresponding to the given pad name.
Encapsulation of a site index in an unsigned 32-bit integer.
PadArray & getPads(void)
Returns a non-constant array of package pads.
Header for the DDB class.
void setSize(uint32_t inSize)
Discards all contents and resizes the array.
Header for the Package class.
Encapsulation of a pad index in an unsigned 32-bit integer.