00001 // Torc - Copyright 2011 University of Southern California. All Rights Reserved. 00002 // $HeadURL: https://torc-isi.svn.sourceforge.net/svnroot/torc-isi/branches/staging/0.9/src/torc/architecture/PrimitiveDefUnitTest.cpp $ 00003 // $Id: PrimitiveDefUnitTest.cpp 10 2011-10-12 18:40:16Z nsteiner $ 00004 00005 // This program is free software: you can redistribute it and/or modify it under the terms of the 00006 // GNU General Public License as published by the Free Software Foundation, either version 3 of the 00007 // License, or (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00010 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 00011 // the GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License along with this program. If 00014 // not, see <http://www.gnu.org/licenses/>. 00015 00016 /// \file 00017 /// \brief Unit test for the PrimitiveDef class. 00018 00019 #include <boost/test/unit_test.hpp> 00020 #include "torc/architecture/PrimitiveDef.hpp" 00021 00022 namespace torc { 00023 namespace architecture { 00024 00025 BOOST_AUTO_TEST_SUITE(architecture) 00026 00027 /// \brief Unit test for the PrimitiveDef class. 00028 BOOST_AUTO_TEST_CASE(PrimitiveDefUnitTest) { 00029 // elements not tested: 00030 // std::string mName; 00031 // PrimitivePinArray mPins; 00032 // PrimitiveElementArray mElements; 00033 // PrimitiveConnSharedPtrArray mConnections; 00034 // PinNameToPinIndexMap mPinNameToPinIndex; 00035 // functions not tested: 00036 // PrimitivePinArray& getPins(void); 00037 // PrimitiveDef(void); 00038 // PinIndex findPinIndexByName(const std::string& inName) const; 00039 // const string& getName(void) const; 00040 // const PrimitivePinArray& getPins(void) const; 00041 // const PrimitiveElementArray& getElements(void) const; 00042 // const PrimitiveConnSharedPtrArray& getConnections(void) const; 00043 /// \todo Write a unit test for torc::architecture::PrimitiveDef. 00044 BOOST_REQUIRE(false); 00045 } 00046 00047 BOOST_AUTO_TEST_SUITE_END() 00048 00049 } // namespace architecture 00050 } // namespace torc