|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <vector>#include <wx/string.h>#include <widgets/wx_data_view_hyperlink_renderer.h>Go to the source code of this file.
Typedefs | |
| using | RUN = HYPERLINK_DV_RENDERER::RUN |
Functions | |
| BOOST_AUTO_TEST_CASE (PlainText) | |
| BOOST_AUTO_TEST_CASE (SingleLink) | |
| BOOST_AUTO_TEST_CASE (TextLinkText) | |
| BOOST_AUTO_TEST_CASE (AdjacentLinks) | |
| BOOST_AUTO_TEST_CASE (UnclosedBracket) | |
| BOOST_AUTO_TEST_CASE (BracketsNoParens) | |
| BOOST_AUTO_TEST_CASE (EmptyLabel) | |
| BOOST_AUTO_TEST_CASE (EmptyHrefRejected) | |
| BOOST_AUTO_TEST_CASE (BalancedParensInUrl) | |
| BOOST_AUTO_TEST_CASE (ArrayIndexInPlainText) | |
| BOOST_AUTO_TEST_CASE (Empty) | |
| BOOST_AUTO_TEST_CASE (LinkPlainLink) | |
| BOOST_AUTO_TEST_CASE (NestedBracketInLabel) | |
| BOOST_AUTO_TEST_CASE (UnsafeUncPathRejected) | |
| BOOST_AUTO_TEST_CASE (UnsafeJavascriptRejected) | |
| BOOST_AUTO_TEST_CASE (UnsafeFileExeRejected) | |
| BOOST_AUTO_TEST_CASE (SafeFilePdfAccepted) | |
| BOOST_AUTO_TEST_CASE (SafeUncPathAccepted) | |
| BOOST_AUTO_TEST_CASE (IsSafeUrlDirect) | |
| BOOST_AUTO_TEST_CASE (StripMarkupPlainText) | |
| BOOST_AUTO_TEST_CASE (StripMarkupSingleLink) | |
| BOOST_AUTO_TEST_CASE (StripMarkupDropsUnsafeUrl) | |
| BOOST_AUTO_TEST_CASE (StripMarkupEmpty) | |
| using RUN = HYPERLINK_DV_RENDERER::RUN |
Definition at line 29 of file test_wx_data_view_hyperlink_renderer.cpp.
| BOOST_AUTO_TEST_CASE | ( | AdjacentLinks | ) |
Definition at line 72 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | ArrayIndexInPlainText | ) |
Definition at line 140 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | BalancedParensInUrl | ) |
Definition at line 129 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | BracketsNoParens | ) |
Definition at line 96 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | Empty | ) |
Definition at line 151 of file test_wx_data_view_hyperlink_renderer.cpp.
References HYPERLINK_DV_RENDERER::ParseRuns().
| BOOST_AUTO_TEST_CASE | ( | EmptyHrefRejected | ) |
Definition at line 118 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | EmptyLabel | ) |
Definition at line 107 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | IsSafeUrlDirect | ) |
Definition at line 239 of file test_wx_data_view_hyperlink_renderer.cpp.
References HYPERLINK_DV_RENDERER::IsSafeUrl().
| BOOST_AUTO_TEST_CASE | ( | LinkPlainLink | ) |
Definition at line 160 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | NestedBracketInLabel | ) |
Definition at line 173 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | PlainText | ) |
Definition at line 35 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | SafeFilePdfAccepted | ) |
Definition at line 217 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | SafeUncPathAccepted | ) |
Definition at line 228 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | SingleLink | ) |
Definition at line 46 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | StripMarkupDropsUnsafeUrl | ) |
Definition at line 273 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), and HYPERLINK_DV_RENDERER::StripMarkup().
| BOOST_AUTO_TEST_CASE | ( | StripMarkupEmpty | ) |
Definition at line 280 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), and HYPERLINK_DV_RENDERER::StripMarkup().
| BOOST_AUTO_TEST_CASE | ( | StripMarkupPlainText | ) |
Definition at line 260 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), and HYPERLINK_DV_RENDERER::StripMarkup().
| BOOST_AUTO_TEST_CASE | ( | StripMarkupSingleLink | ) |
Definition at line 266 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), and HYPERLINK_DV_RENDERER::StripMarkup().
| BOOST_AUTO_TEST_CASE | ( | TextLinkText | ) |
Definition at line 57 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | UnclosedBracket | ) |
Definition at line 85 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | UnsafeFileExeRejected | ) |
Definition at line 206 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | UnsafeJavascriptRejected | ) |
Definition at line 195 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.
| BOOST_AUTO_TEST_CASE | ( | UnsafeUncPathRejected | ) |
Definition at line 184 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.