torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PrimitiveDefUnitTest.cpp
Go to the documentation of this file.
1 // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2 // $HeadURL$
3 // $Id$
4 
5 // This program is free software: you can redistribute it and/or modify it under the terms of the
6 // GNU General Public License as published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11 // the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program. If
14 // not, see <http://www.gnu.org/licenses/>.
15 
16 /// \file
17 /// \brief Unit test for the PrimitiveDef class.
18 
19 #include <boost/test/unit_test.hpp>
21 
22 namespace torc {
23 namespace architecture {
24 
25 BOOST_AUTO_TEST_SUITE(regression)
26 BOOST_AUTO_TEST_SUITE(architecture)
27 
28 /// \brief Unit test for the PrimitiveDef class.
29 BOOST_AUTO_TEST_CASE(PrimitiveDefUnitTest) {
30  // elements not tested:
31  // std::string mName;
32  // PrimitivePinArray mPins;
33  // PrimitiveElementArray mElements;
34  // PrimitiveConnSharedPtrArray mConnections;
35  // PinNameToPinIndexMap mPinNameToPinIndex;
36  // functions not tested:
37  // PrimitivePinArray& getPins(void);
38  // PrimitiveDef(void);
39  // PinIndex findPinIndexByName(const std::string& inName) const;
40  // const string& getName(void) const;
41  // const PrimitivePinArray& getPins(void) const;
42  // const PrimitiveElementArray& getElements(void) const;
43  // const PrimitiveConnSharedPtrArray& getConnections(void) const;
44  /// \todo Write a unit test for torc::architecture::PrimitiveDef.
45  BOOST_REQUIRE(false);
46 }
47 
48 BOOST_AUTO_TEST_SUITE_END()
49 BOOST_AUTO_TEST_SUITE_END()
50 
51 } // namespace architecture
52 } // namespace torc
BOOST_AUTO_TEST_CASE(ArcUnitTest)
Unit test for the Arc class.
Definition: ArcUnitTest.cpp:29
Header for the PrimitiveDef class.