souffle  2.0.2-371-g6315b36
Public Member Functions | Data Fields
TestCase::test_result Struct Reference

Checks condition. More...

#include <test.h>

Collaboration diagram for TestCase::test_result:
Collaboration graph

Public Member Functions

 operator bool () const
 
 test_result (bool success, std::ostream &out)
 
 ~test_result ()
 

Data Fields

std::ostream & out
 
bool success
 

Detailed Description

Checks condition.

checks whether condition holds and update counters.

Definition at line 95 of file test.h.

Constructor & Destructor Documentation

◆ test_result()

TestCase::test_result::test_result ( bool  success,
std::ostream &  out 
)
inline

Definition at line 98 of file test.h.

98 : success(success), out(out) {}

◆ ~test_result()

TestCase::test_result::~test_result ( )
inline

Definition at line 99 of file test.h.

99  {
100  if (!success) out << "\n\n";
101  }

References out, and success.

Member Function Documentation

◆ operator bool()

TestCase::test_result::operator bool ( ) const
inline

Definition at line 102 of file test.h.

102  {
103  return success;
104  }

References success.

Field Documentation

◆ out

std::ostream& TestCase::test_result::out

Definition at line 97 of file test.h.

Referenced by ~test_result().

◆ success

bool TestCase::test_result::success

Definition at line 96 of file test.h.

Referenced by operator bool(), and ~test_result().


The documentation for this struct was generated from the following file:
TestCase::test_result::out
std::ostream & out
Definition: test.h:97
TestCase::test_result::success
bool success
Definition: test.h:96