27 #ifndef GTESTSUITES_HPP
28 #define GTESTSUITES_HPP
78 void remove(
const int& index);
81 const std::string&
name(
void)
const;
82 void name(
const std::string& name);
83 void cout(
const bool& flag);
86 int tests(
void)
const;
115 return (
"GTestSuites");
void write(GXml &xml) const
Write Test Suites into XML document.
GTestSuites & operator=(const GTestSuites &suites)
Assignment operator.
Test suite container class.
std::vector< GTestSuite * > m_testsuites
Vector of test suites.
void clear(void)
Clear test suites.
void free_members(void)
Delete class members.
void copy_members(const GTestSuites &suites)
Copy class members.
int failures(void) const
Return the total number of failures in all test suites.
void reserve(const int &num)
Reserves space for test suites in container.
void cout(const bool &flag)
Set standard output stream (cout) flag.
void cout(const bool &flag)
Enables/disables logging into standard output stream.
time_t m_timestamp
Timestamp.
GTestSuites * clone(void) const
Clone test suites.
GTestSuite * operator[](const int &index)
Returns pointer to test suite.
Abstract test suite base class definition.
Information logger interface definition.
bool is_empty(void) const
Signals if there are no test suites in the container.
const time_t & timestamp(void) const
Return the timestamp.
GTestSuite * at(const int &index)
Returns pointer to test suite.
int size(void) const
Return number of test suites in container.
GTestSuite * set(const int &index, const GTestSuite &suite)
Set test suite in container.
void save(const GFilename &filename) const
Save test report into XML file.
virtual ~GTestSuites(void)
Destructor.
GTestSuite * append(const GTestSuite &suite)
Append test suite to container.
std::string print(const GChatter &chatter=NORMAL) const
Print test suites information.
Abstract test suite class for unit testing on GammaLib fixtures.
GTestSuite * insert(const int &index, const GTestSuite &suite)
Insert test suite into container.
std::string classname(void) const
Return class name.
const std::string & name(void) const
Return test suite container name.
Information logger class definition.
std::string m_name
Name of container.
void init_members(void)
Initialise class members.
GTestSuites(void)
Void constructor.
Definition of interface for container classes.
bool run(void)
Run all tests.
int tests(void) const
Return the total number of tests they are in all test suites.
int errors(void) const
Return the total number of errors in all test suites.
void extend(const GTestSuites &suites)
Append test suite container.
Interface class for container classes.