TestStreamable.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * NICE-Core - efficient algebra and computer vision methods
  3. * - libiocompression - An iocompression/template for new NICE libraries
  4. * See file License for license information.
  5. */
  6. #ifndef _TESTSTREAMABLE_BASICVECTOR_H
  7. #define _TESTSTREAMABLE_BASICVECTOR_H
  8. #ifdef NICE_USELIB_LINAL
  9. #include <LinAl/vectorC.h>
  10. #include <LinAl/matrixCF.h>
  11. #include <LinAl/matio.h>
  12. #include <LinAl/operatorsT.h>
  13. #endif
  14. #include <cppunit/extensions/HelperMacros.h>
  15. #include <core/basics/Streamable.h>
  16. #include <core/basics/BinStreamable.h>
  17. #include <core/vector/VectorT.h>
  18. class StreamableClass;
  19. /**
  20. * CppUnit-Testcase.
  21. * Test template...
  22. */
  23. class TestStreamable : public CppUnit::TestFixture {
  24. CPPUNIT_TEST_SUITE( TestStreamable );
  25. CPPUNIT_TEST( testASCII );
  26. CPPUNIT_TEST( testBIN );
  27. CPPUNIT_TEST( testGZ );
  28. CPPUNIT_TEST( testGZBIN );
  29. CPPUNIT_TEST( testBZ );
  30. CPPUNIT_TEST_SUITE_END();
  31. private:
  32. StreamableClass *s;
  33. public:
  34. void setUp();
  35. void tearDown();
  36. /**
  37. * Constructor / Destructor testing
  38. */
  39. void testConstructor();
  40. /**
  41. * Operator testing
  42. */
  43. void testOperators();
  44. /**
  45. * Test ascii read and write
  46. */
  47. void testASCII();
  48. /**
  49. * Test binary read and write
  50. */
  51. void testBIN();
  52. /**
  53. * Test ascii gzip read and write
  54. */
  55. void testGZ();
  56. /**
  57. * Test binary gzip read and write
  58. */
  59. void testGZBIN();
  60. /**
  61. * Test bzip read and write
  62. */
  63. void testBZ();
  64. };
  65. #endif // _TESTSTREAMABLE_BASICVECTOR_H