KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_reporting.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <reporter.h>
#include <wx/string.h>
#include <wx/textctrl.h>
#include <wx/statusbr.h>
#include <wx/log.h>
#include <vector>
#include <sstream>

Go to the source code of this file.

Classes

class  TEST_REPORTER
 
class  MockTextCtrl
 
class  MockStatusBar
 

Functions

 BOOST_AUTO_TEST_CASE (BaseReporter_Constructor)
 
 BOOST_AUTO_TEST_CASE (BaseReporter_SingleReport)
 
 BOOST_AUTO_TEST_CASE (BaseReporter_MultipleReports)
 
 BOOST_AUTO_TEST_CASE (BaseReporter_ReportTail)
 
 BOOST_AUTO_TEST_CASE (BaseReporter_ReportHead)
 
 BOOST_AUTO_TEST_CASE (BaseReporter_OperatorLeftShift)
 
 BOOST_AUTO_TEST_CASE (BaseReporter_CharPointerReport)
 
 BOOST_AUTO_TEST_CASE (BaseReporter_Clear)
 
 BOOST_AUTO_TEST_CASE (BaseReporter_SeverityMask)
 
 BOOST_AUTO_TEST_CASE (BaseReporter_EmptyMessage)
 
 BOOST_AUTO_TEST_CASE (BaseReporter_LongMessage)
 
 BOOST_AUTO_TEST_CASE (WxStringReporter_BasicFunctionality)
 
 BOOST_AUTO_TEST_CASE (WxStringReporter_MultipleMessages)
 
 BOOST_AUTO_TEST_CASE (WxStringReporter_Clear)
 
 BOOST_AUTO_TEST_CASE (WxStringReporter_SeverityMask)
 
 BOOST_AUTO_TEST_CASE (WxStringReporter_OperatorChaining)
 
 BOOST_AUTO_TEST_CASE (NullReporter_Singleton)
 
 BOOST_AUTO_TEST_CASE (NullReporter_SeverityMask)
 
 BOOST_AUTO_TEST_CASE (CliReporter_Singleton)
 
 BOOST_AUTO_TEST_CASE (StdoutReporter_Singleton)
 
 BOOST_AUTO_TEST_CASE (WxLogReporter_Singleton)
 
 BOOST_AUTO_TEST_CASE (ReporterInterface_Polymorphism)
 
 BOOST_AUTO_TEST_CASE (ReporterInterface_ChainedOperations)
 
 BOOST_AUTO_TEST_CASE (ReporterInterface_DefaultSeverity)
 
 BOOST_AUTO_TEST_CASE (ReporterInterface_UnitsDefault)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/25]

◆ BOOST_AUTO_TEST_CASE() [2/25]

◆ BOOST_AUTO_TEST_CASE() [3/25]

BOOST_AUTO_TEST_CASE ( BaseReporter_Constructor )

◆ BOOST_AUTO_TEST_CASE() [4/25]

◆ BOOST_AUTO_TEST_CASE() [5/25]

◆ BOOST_AUTO_TEST_CASE() [6/25]

◆ BOOST_AUTO_TEST_CASE() [7/25]

BOOST_AUTO_TEST_CASE ( BaseReporter_OperatorLeftShift )

◆ BOOST_AUTO_TEST_CASE() [8/25]

◆ BOOST_AUTO_TEST_CASE() [9/25]

◆ BOOST_AUTO_TEST_CASE() [10/25]

BOOST_AUTO_TEST_CASE ( BaseReporter_SeverityMask )

◆ BOOST_AUTO_TEST_CASE() [11/25]

◆ BOOST_AUTO_TEST_CASE() [12/25]

BOOST_AUTO_TEST_CASE ( CliReporter_Singleton )

Definition at line 352 of file test_reporting.cpp.

References BOOST_CHECK_EQUAL(), and CLI_REPORTER::GetInstance().

◆ BOOST_AUTO_TEST_CASE() [13/25]

BOOST_AUTO_TEST_CASE ( NullReporter_SeverityMask )

◆ BOOST_AUTO_TEST_CASE() [14/25]

BOOST_AUTO_TEST_CASE ( NullReporter_Singleton )

Definition at line 332 of file test_reporting.cpp.

References BOOST_CHECK_EQUAL(), and NULL_REPORTER::GetInstance().

◆ BOOST_AUTO_TEST_CASE() [15/25]

◆ BOOST_AUTO_TEST_CASE() [16/25]

BOOST_AUTO_TEST_CASE ( ReporterInterface_DefaultSeverity )

◆ BOOST_AUTO_TEST_CASE() [17/25]

BOOST_AUTO_TEST_CASE ( ReporterInterface_Polymorphism )

Definition at line 379 of file test_reporting.cpp.

References RPT_SEVERITY_INFO.

◆ BOOST_AUTO_TEST_CASE() [18/25]

BOOST_AUTO_TEST_CASE ( ReporterInterface_UnitsDefault )

Definition at line 422 of file test_reporting.cpp.

References REPORTER::GetUnits(), and MM.

◆ BOOST_AUTO_TEST_CASE() [19/25]

BOOST_AUTO_TEST_CASE ( StdoutReporter_Singleton )

Definition at line 360 of file test_reporting.cpp.

References BOOST_CHECK_EQUAL(), and STDOUT_REPORTER::GetInstance().

◆ BOOST_AUTO_TEST_CASE() [20/25]

BOOST_AUTO_TEST_CASE ( WxLogReporter_Singleton )

Definition at line 368 of file test_reporting.cpp.

References BOOST_CHECK_EQUAL(), and WXLOG_REPORTER::GetInstance().

◆ BOOST_AUTO_TEST_CASE() [21/25]

BOOST_AUTO_TEST_CASE ( WxStringReporter_BasicFunctionality )

◆ BOOST_AUTO_TEST_CASE() [22/25]

BOOST_AUTO_TEST_CASE ( WxStringReporter_Clear )

◆ BOOST_AUTO_TEST_CASE() [23/25]

BOOST_AUTO_TEST_CASE ( WxStringReporter_MultipleMessages )

◆ BOOST_AUTO_TEST_CASE() [24/25]

BOOST_AUTO_TEST_CASE ( WxStringReporter_OperatorChaining )

◆ BOOST_AUTO_TEST_CASE() [25/25]

BOOST_AUTO_TEST_CASE ( WxStringReporter_SeverityMask )