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