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