File: SeverityLevelTest.hh

package info (click to toggle)
tyvis 20031216-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,024 kB
  • ctags: 2,985
  • sloc: cpp: 22,881; sh: 8,372; makefile: 353
file content (47 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef SEVERITY_LEVEL_TEST_HH
#define SEVERITY_LEVEL_TEST_HH

#include <cppunit/extensions/HelperMacros.h>
#include "VHDLDataTest.hh"
#include "tyvis/_savant_severity_level.hh"

typedef _savant_severity_level SeverityLevel;

class SeverityLevelTest : public VHDLDataTest {
  CPPUNIT_TEST_SUITE( SeverityLevelTest);
  CPPUNIT_TEST(testGetUniversalKind);
  CPPUNIT_TEST(testGetLength);
  CPPUNIT_TEST(testPrint);
  CPPUNIT_TEST(testEqual);
  CPPUNIT_TEST(testNotEqual);
  CPPUNIT_TEST(testGreater);
  CPPUNIT_TEST(testGreaterEqual);
  CPPUNIT_TEST(testLess);
  CPPUNIT_TEST(testLessEqual);
  CPPUNIT_TEST(testClone);
  CPPUNIT_TEST(testSerialization);
  CPPUNIT_TEST_SUITE_END();

private:
  SeverityLevel *toTest;

  static int getDefaultValue();

public:
  void setUp();
  void tearDown();

  void testGetUniversalKind();
  void testGetLength();
  void testPrint();
  void testEqual();
  void testNotEqual();
  void testGreater();
  void testGreaterEqual();
  void testLess();
  void testLessEqual();
  void testClone();
  void testSerialization();
};

#endif