|
KiCad PCB EDA Suite
|
#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) | |
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_CharPointerReport | ) |
Definition at line 189 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), TEST_REPORTER::GetMessageCount(), TEST_REPORTER::HasMessage(), REPORTER::HasMessageOfSeverity(), TEST_REPORTER::Report(), and RPT_SEVERITY_ERROR.
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_Clear | ) |
Definition at line 200 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), TEST_REPORTER::Clear(), TEST_REPORTER::GetMessageCount(), TEST_REPORTER::HasMessage(), REPORTER::HasMessageOfSeverity(), TEST_REPORTER::Report(), RPT_SEVERITY_INFO, and RPT_SEVERITY_WARNING.
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_Constructor | ) |
Definition at line 105 of file test_reporting.cpp.
References BOOST_AUTO_TEST_CASE(), REPORTER::GetUnits(), TEST_REPORTER::HasMessage(), REPORTER::HasMessageOfSeverity(), MM, and RPT_SEVERITY_INFO.
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_EmptyMessage | ) |
Definition at line 238 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), TEST_REPORTER::GetMessageCount(), TEST_REPORTER::GetMessages(), TEST_REPORTER::HasMessage(), TEST_REPORTER::Report(), and RPT_SEVERITY_INFO.
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_LongMessage | ) |
Definition at line 251 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), TEST_REPORTER::GetMessageCount(), TEST_REPORTER::GetMessages(), TEST_REPORTER::HasMessage(), TEST_REPORTER::Report(), and RPT_SEVERITY_INFO.
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_MultipleReports | ) |
Definition at line 130 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), TEST_REPORTER::GetMessageCount(), TEST_REPORTER::HasMessage(), REPORTER::HasMessageOfSeverity(), TEST_REPORTER::Report(), RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, and RPT_SEVERITY_WARNING.
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_OperatorLeftShift | ) |
Definition at line 175 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), TEST_REPORTER::GetMessageCount(), TEST_REPORTER::GetMessages(), TEST_REPORTER::HasMessage(), and RPT_SEVERITY_UNDEFINED.
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_ReportHead | ) |
Definition at line 161 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), TEST_REPORTER::GetMessageCount(), TEST_REPORTER::GetMessages(), TEST_REPORTER::HasMessage(), REPORTER::ReportHead(), and RPT_SEVERITY_WARNING.
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_ReportTail | ) |
Definition at line 147 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), TEST_REPORTER::GetMessageCount(), TEST_REPORTER::GetMessages(), TEST_REPORTER::HasMessage(), REPORTER::ReportTail(), and RPT_SEVERITY_INFO.
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_SeverityMask | ) |
Definition at line 219 of file test_reporting.cpp.
References REPORTER::HasMessageOfSeverity(), TEST_REPORTER::Report(), RPT_SEVERITY_ACTION, RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, and RPT_SEVERITY_WARNING.
| BOOST_AUTO_TEST_CASE | ( | BaseReporter_SingleReport | ) |
Definition at line 114 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), TEST_REPORTER::GetMessageCount(), TEST_REPORTER::GetMessages(), TEST_REPORTER::HasMessage(), REPORTER::HasMessageOfSeverity(), TEST_REPORTER::Report(), and RPT_SEVERITY_INFO.
| BOOST_AUTO_TEST_CASE | ( | CliProgressReporter_Singleton | ) |
Definition at line 455 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), and CLI_PROGRESS_REPORTER::GetInstance().
| BOOST_AUTO_TEST_CASE | ( | CliProgressReporter_VerboseDefault | ) |
Definition at line 463 of file test_reporting.cpp.
References CLI_PROGRESS_REPORTER::GetInstance(), and CLI_PROGRESS_REPORTER::GetVerbose().
| BOOST_AUTO_TEST_CASE | ( | CliProgressReporter_VerboseToggle | ) |
Definition at line 471 of file test_reporting.cpp.
References CLI_PROGRESS_REPORTER::GetInstance(), CLI_PROGRESS_REPORTER::GetVerbose(), and CLI_PROGRESS_REPORTER::SetVerbose().
| 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 | ( | CliReporter_VerboseDefault | ) |
Definition at line 361 of file test_reporting.cpp.
References CLI_REPORTER::GetInstance(), and CLI_REPORTER::GetVerbose().
| BOOST_AUTO_TEST_CASE | ( | CliReporter_VerboseToggle | ) |
Definition at line 369 of file test_reporting.cpp.
References CLI_REPORTER::GetInstance(), CLI_REPORTER::GetVerbose(), and CLI_REPORTER::SetVerbose().
| BOOST_AUTO_TEST_CASE | ( | NullReporter_SeverityMask | ) |
Definition at line 341 of file test_reporting.cpp.
References NULL_REPORTER::GetInstance(), REPORTER::HasMessageOfSeverity(), REPORTER::Report(), RPT_SEVERITY_INFO, and RPT_SEVERITY_WARNING.
| 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 | ( | ReporterInterface_ChainedOperations | ) |
Definition at line 419 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), WX_STRING_REPORTER::GetMessages(), REPORTER::HasMessage(), WX_STRING_REPORTER::Report(), REPORTER::ReportHead(), REPORTER::ReportTail(), result, RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, and RPT_SEVERITY_WARNING.
| BOOST_AUTO_TEST_CASE | ( | ReporterInterface_DefaultSeverity | ) |
Definition at line 437 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), TEST_REPORTER::GetMessages(), TEST_REPORTER::Report(), and RPT_SEVERITY_UNDEFINED.
| BOOST_AUTO_TEST_CASE | ( | ReporterInterface_Polymorphism | ) |
Definition at line 405 of file test_reporting.cpp.
References RPT_SEVERITY_INFO.
| BOOST_AUTO_TEST_CASE | ( | ReporterInterface_UnitsDefault | ) |
Definition at line 448 of file test_reporting.cpp.
References REPORTER::GetUnits(), and MM.
| 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 | ( | WxLogReporter_Singleton | ) |
Definition at line 394 of file test_reporting.cpp.
References BOOST_CHECK_EQUAL(), and WXLOG_REPORTER::GetInstance().
| BOOST_AUTO_TEST_CASE | ( | WxStringReporter_BasicFunctionality | ) |
Definition at line 265 of file test_reporting.cpp.
References WX_STRING_REPORTER::GetMessages(), REPORTER::HasMessage(), WX_STRING_REPORTER::Report(), and RPT_SEVERITY_INFO.
| BOOST_AUTO_TEST_CASE | ( | WxStringReporter_Clear | ) |
Definition at line 292 of file test_reporting.cpp.
References WX_STRING_REPORTER::Clear(), WX_STRING_REPORTER::GetMessages(), REPORTER::HasMessage(), WX_STRING_REPORTER::Report(), and RPT_SEVERITY_INFO.
| BOOST_AUTO_TEST_CASE | ( | WxStringReporter_MultipleMessages | ) |
Definition at line 278 of file test_reporting.cpp.
References WX_STRING_REPORTER::GetMessages(), REPORTER::HasMessage(), WX_STRING_REPORTER::Report(), RPT_SEVERITY_INFO, and RPT_SEVERITY_WARNING.
| BOOST_AUTO_TEST_CASE | ( | WxStringReporter_OperatorChaining | ) |
Definition at line 318 of file test_reporting.cpp.
References WX_STRING_REPORTER::GetMessages(), REPORTER::HasMessage(), REPORTER::Report(), WX_STRING_REPORTER::Report(), RPT_SEVERITY_INFO, and RPT_SEVERITY_WARNING.
| BOOST_AUTO_TEST_CASE | ( | WxStringReporter_SeverityMask | ) |
Definition at line 305 of file test_reporting.cpp.
References REPORTER::HasMessageOfSeverity(), WX_STRING_REPORTER::Report(), RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, and RPT_SEVERITY_WARNING.