NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
BasicRangeIteratorTest.h
1 
2 
3 #ifndef BASICRANGEITERATORTEST_H
4 #define BASICRANGEITERATORTEST_H
5 
6 #include <iostream>
7 #include <cppunit/extensions/HelperMacros.h>
8 
9 #ifndef TEST
10 #define TEST
11 #define private public
12 #endif
13 
14 #include "Trace.hpp"
15 
16 #include "TraceDefs.h"
17 
18 #ifndef USING_TRANAL_NAMESPACE
19 using namespace TrAnal;
20 #define USING_TRANAL_NAMESPACE
21 #endif
22 
23 
24 class BasicRangeIteratorTest : public CppUnit::TestFixture
25 {
26 
27  private:
28  TraceS null_tr;
29  TraceS simple_tr;
30  TraceS step_tr;
31 
32  public:
33  // Define the test suite
34  CPPUNIT_TEST_SUITE( BasicRangeIteratorTest );
35 
36  CPPUNIT_TEST ( testConstructor );
37  CPPUNIT_TEST ( testConstructor2 );
38  CPPUNIT_TEST ( testCopyConstructor );
39  CPPUNIT_TEST ( testAssignment );
40  CPPUNIT_TEST ( testEquality );
41  CPPUNIT_TEST ( testIsDoneOnNullTrace );
42  CPPUNIT_TEST ( testMoveToInBounds );
43  CPPUNIT_TEST ( testMoveToOutOfBounds );
44  CPPUNIT_TEST ( testIncrementInBounds );
45  CPPUNIT_TEST ( testIncrementOutOfBounds );
46 
47  CPPUNIT_TEST_SUITE_END();
48 
49  public:
50  // Begin the standard methods
51  void setUp();
52  void tearDown();
53 
54  // Begin tests
55  void testConstructor();
56  void testConstructor2();
57  void testCopyConstructor();
58  void testAssignment();
59  void testEquality();
60  void testIsDoneOnNullTrace();
61  void testMoveToInBounds();
62  void testMoveToOutOfBounds();
63 
64  void testIncrementInBounds();
65  void testIncrementOutOfBounds();
66 
67  void testRandomAccess();
68 
69 };
70 
71 #endif
Definition: AlgoIterator.hpp:12
Definition: BasicRangeIteratorTest.h:24