KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_reporting.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <reporter.h>
#include <cli_progress_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 (CliReporter_VerboseDefault)
 
 BOOST_AUTO_TEST_CASE (CliReporter_VerboseToggle)
 
 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)
 
 BOOST_AUTO_TEST_CASE (CliProgressReporter_Singleton)
 
 BOOST_AUTO_TEST_CASE (CliProgressReporter_VerboseDefault)
 
 BOOST_AUTO_TEST_CASE (CliProgressReporter_VerboseToggle)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/30]

◆ BOOST_AUTO_TEST_CASE() [2/30]

◆ BOOST_AUTO_TEST_CASE() [3/30]

BOOST_AUTO_TEST_CASE ( BaseReporter_Constructor )

◆ BOOST_AUTO_TEST_CASE() [4/30]

◆ BOOST_AUTO_TEST_CASE() [5/30]

◆ BOOST_AUTO_TEST_CASE() [6/30]

◆ BOOST_AUTO_TEST_CASE() [7/30]

BOOST_AUTO_TEST_CASE ( BaseReporter_OperatorLeftShift )

◆ BOOST_AUTO_TEST_CASE() [8/30]

◆ BOOST_AUTO_TEST_CASE() [9/30]

◆ BOOST_AUTO_TEST_CASE() [10/30]

BOOST_AUTO_TEST_CASE ( BaseReporter_SeverityMask )

◆ BOOST_AUTO_TEST_CASE() [11/30]

◆ BOOST_AUTO_TEST_CASE() [12/30]

BOOST_AUTO_TEST_CASE ( CliProgressReporter_Singleton )

◆ BOOST_AUTO_TEST_CASE() [13/30]

BOOST_AUTO_TEST_CASE ( CliProgressReporter_VerboseDefault )

◆ BOOST_AUTO_TEST_CASE() [14/30]

BOOST_AUTO_TEST_CASE ( CliProgressReporter_VerboseToggle )

◆ BOOST_AUTO_TEST_CASE() [15/30]

BOOST_AUTO_TEST_CASE ( CliReporter_Singleton )

Definition at line 353 of file test_reporting.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [16/30]

BOOST_AUTO_TEST_CASE ( CliReporter_VerboseDefault )

Definition at line 361 of file test_reporting.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [17/30]

BOOST_AUTO_TEST_CASE ( CliReporter_VerboseToggle )

◆ BOOST_AUTO_TEST_CASE() [18/30]

BOOST_AUTO_TEST_CASE ( NullReporter_SeverityMask )

◆ BOOST_AUTO_TEST_CASE() [19/30]

BOOST_AUTO_TEST_CASE ( NullReporter_Singleton )

Definition at line 333 of file test_reporting.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [20/30]

◆ BOOST_AUTO_TEST_CASE() [21/30]

BOOST_AUTO_TEST_CASE ( ReporterInterface_DefaultSeverity )

◆ BOOST_AUTO_TEST_CASE() [22/30]

BOOST_AUTO_TEST_CASE ( ReporterInterface_Polymorphism )

Definition at line 405 of file test_reporting.cpp.

References RPT_SEVERITY_INFO.

◆ BOOST_AUTO_TEST_CASE() [23/30]

BOOST_AUTO_TEST_CASE ( ReporterInterface_UnitsDefault )

Definition at line 448 of file test_reporting.cpp.

References REPORTER::GetUnits(), and MM.

◆ BOOST_AUTO_TEST_CASE() [24/30]

BOOST_AUTO_TEST_CASE ( StdoutReporter_Singleton )

Definition at line 386 of file test_reporting.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [25/30]

BOOST_AUTO_TEST_CASE ( WxLogReporter_Singleton )

Definition at line 394 of file test_reporting.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [26/30]

BOOST_AUTO_TEST_CASE ( WxStringReporter_BasicFunctionality )

◆ BOOST_AUTO_TEST_CASE() [27/30]

BOOST_AUTO_TEST_CASE ( WxStringReporter_Clear )

◆ BOOST_AUTO_TEST_CASE() [28/30]

BOOST_AUTO_TEST_CASE ( WxStringReporter_MultipleMessages )

◆ BOOST_AUTO_TEST_CASE() [29/30]

BOOST_AUTO_TEST_CASE ( WxStringReporter_OperatorChaining )

◆ BOOST_AUTO_TEST_CASE() [30/30]

BOOST_AUTO_TEST_CASE ( WxStringReporter_SeverityMask )