|
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 28 of file test_wx_data_view_hyperlink_renderer.cpp.
| BOOST_AUTO_TEST_CASE | ( | AdjacentLinks | ) |
Definition at line 71 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 139 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 128 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 95 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 150 of file test_wx_data_view_hyperlink_renderer.cpp.
References HYPERLINK_DV_RENDERER::ParseRuns().
| BOOST_AUTO_TEST_CASE | ( | EmptyHrefRejected | ) |
Definition at line 117 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 106 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 238 of file test_wx_data_view_hyperlink_renderer.cpp.
References HYPERLINK_DV_RENDERER::IsSafeUrl().
| BOOST_AUTO_TEST_CASE | ( | LinkPlainLink | ) |
Definition at line 159 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 172 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 34 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 216 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 227 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 45 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 272 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 279 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 259 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 265 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 56 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 84 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 205 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 194 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 183 of file test_wx_data_view_hyperlink_renderer.cpp.
References BOOST_CHECK_EQUAL(), HYPERLINK_DV_RENDERER::ParseRuns(), and text.