SubRunTest.hpp 859 Bytes
Newer Older
Matthieu Dorier's avatar
Matthieu Dorier committed
1 2 3 4 5 6 7 8 9 10 11 12
#ifndef __HEPNOS_TEST_SUBRUN_H
#define __HEPNOS_TEST_SUBRUN_H

#include <cppunit/extensions/HelperMacros.h>
#include <hepnos.hpp>

extern hepnos::DataStore* datastore;

class SubRunTest : public CppUnit::TestFixture
{
    CPPUNIT_TEST_SUITE( SubRunTest );
    CPPUNIT_TEST( testFillDataStore );
13
    CPPUNIT_TEST( testDescriptor );
Matthieu Dorier's avatar
Matthieu Dorier committed
14
    CPPUNIT_TEST( testCreateEvents );
15
    CPPUNIT_TEST( testBraketOperator );
Matthieu Dorier's avatar
Matthieu Dorier committed
16 17 18
    CPPUNIT_TEST( testFind );
    CPPUNIT_TEST( testBeginEnd );
    CPPUNIT_TEST( testLowerUpperBounds );
19
    CPPUNIT_TEST( testAsync );
Matthieu Dorier's avatar
Matthieu Dorier committed
20 21 22 23 24 25 26 27
    CPPUNIT_TEST_SUITE_END();

    public:

    void setUp();
    void tearDown();

    void testFillDataStore();
28
    void testDescriptor();
Matthieu Dorier's avatar
Matthieu Dorier committed
29
    void testCreateEvents();
30
    void testBraketOperator();
Matthieu Dorier's avatar
Matthieu Dorier committed
31 32 33
    void testFind();
    void testBeginEnd();
    void testLowerUpperBounds();
34
    void testAsync();
Matthieu Dorier's avatar
Matthieu Dorier committed
35 36 37
};

#endif