NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
TrapFilterTest.h
1 
2 
3 #ifndef TRAPFILTERTEST_H
4 #define TRAPFILTERTEST_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 "TrapFilter.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 TrapFilterTest : public CppUnit::TestFixture
26 {
27 
28  private:
29  TraceS null_tr;
30  TraceS simple_tr;
31  TraceS step_tr;
32  TraceS line_tr;
33  TraceS step_trlong;
34 
35  public:
36  // Define the test suite
37  CPPUNIT_TEST_SUITE( TrapFilterTest );
38 
39  CPPUNIT_TEST ( testConstructor );
40  CPPUNIT_TEST ( testMinExtent );
41  CPPUNIT_TEST ( testMaxExtent );
42  CPPUNIT_TEST ( testIncrement );
43  CPPUNIT_TEST ( testWhile );
44  CPPUNIT_TEST ( testNegative );
45 
46  CPPUNIT_TEST_SUITE_END();
47 
48  public:
49  // Begin the standard methods
50  void setUp();
51  void tearDown();
52 
53  // Begin tests
54  void testConstructor();
55 
56  void testIncrement();
57 
58  void testMaxExtent();
59  void testMinExtent();
60 
61  void testWhile();
62  void testNegative();
63 
64 };
65 
66 #endif
Definition: TrapFilterTest.h:25
Definition: AlgoIterator.hpp:12