xapian-core  1.4.27
Public Member Functions | Public Attributes | List of all members
test_driver::result Struct Reference

A structure used to report the summary of tests passed and failed. More...

#include <testsuite.h>

Public Member Functions

resultoperator+= (const result &o)
 
void reset ()
 

Public Attributes

unsigned int succeeded = 0
 The number of tests which succeeded. More...
 
unsigned int failed = 0
 The number of tests which failed. More...
 
unsigned int skipped = 0
 The number of tests which were skipped. More...
 
unsigned int xfailed = 0
 Number of tests with result XFAIL. More...
 
unsigned int xpassed = 0
 Number of tests with result XFAIL. More...
 

Detailed Description

A structure used to report the summary of tests passed and failed.

Definition at line 116 of file testsuite.h.

Member Function Documentation

◆ operator+=()

result& test_driver::result::operator+= ( const result o)
inline

Definition at line 138 of file testsuite.h.

References failed, skipped, succeeded, xfailed, and xpassed.

◆ reset()

void test_driver::result::reset ( )
inline

Definition at line 147 of file testsuite.h.

References tests.

Referenced by ApiTestRunner::run().

Member Data Documentation

◆ failed

unsigned int test_driver::result::failed = 0

The number of tests which failed.

Definition at line 121 of file testsuite.h.

Referenced by test_driver::do_run_tests(), operator+=(), test_driver::report(), and test_driver::run().

◆ skipped

unsigned int test_driver::result::skipped = 0

The number of tests which were skipped.

Definition at line 124 of file testsuite.h.

Referenced by test_driver::do_run_tests(), operator+=(), and test_driver::report().

◆ succeeded

unsigned int test_driver::result::succeeded = 0

The number of tests which succeeded.

Definition at line 118 of file testsuite.h.

Referenced by test_driver::do_run_tests(), operator+=(), and test_driver::report().

◆ xfailed

unsigned int test_driver::result::xfailed = 0

Number of tests with result XFAIL.

I.e. tests which were expected to fail and did.

Definition at line 130 of file testsuite.h.

Referenced by test_driver::do_run_tests(), operator+=(), and test_driver::report().

◆ xpassed

unsigned int test_driver::result::xpassed = 0

Number of tests with result XFAIL.

I.e. tests which were expected to fail but passed.

Definition at line 136 of file testsuite.h.

Referenced by test_driver::do_run_tests(), operator+=(), test_driver::report(), and test_driver::run().


The documentation for this struct was generated from the following file: