KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>
#include <memory>
#include <set>
#include <utility>
#include <type_traits>
#include <ki_any.h>
Go to the source code of this file.
Classes | |
struct | NoDefaultCtor |
class | A |
struct | combined |
struct | LocationAware |
struct | X |
struct | X2 |
struct | X3 |
struct | wrapper |
struct | Bad |
struct | Bad2 |
struct | Good |
struct | X_e |
struct | X2_e |
Variables | |
static int | move_count = 0 |
bool | moved = false |
bool | copied = false |
std::set< const void * > | live_objects |
bool | should_throw = false |
int | del_count = 0 |
BOOST_AUTO_TEST_CASE | ( | AnyCast_1 | ) |
Definition at line 116 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | AnyCast_2 | ) |
Definition at line 144 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | AnyCast_3 | ) |
Definition at line 168 of file test_ki_any.cpp.
References m2, m3, and move_count.
BOOST_AUTO_TEST_CASE | ( | AnyCast_4 | ) |
Definition at line 187 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | AnyCast_5 | ) |
Definition at line 200 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | AnyCast_6 | ) |
Definition at line 212 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | AnyCast_7 | ) |
Definition at line 245 of file test_ki_any.cpp.
References ki::any::type().
BOOST_AUTO_TEST_CASE | ( | Assign_1 | ) |
Definition at line 599 of file test_ki_any.cpp.
References ki::any::has_value(), live_objects, and ki::any::reset().
BOOST_AUTO_TEST_CASE | ( | Assign_2 | ) |
Definition at line 614 of file test_ki_any.cpp.
References live_objects.
BOOST_AUTO_TEST_CASE | ( | Assign_3 | ) |
Definition at line 633 of file test_ki_any.cpp.
References ki::any::has_value(), live_objects, ki::any::reset(), and ki::any::swap().
BOOST_AUTO_TEST_CASE | ( | Assign_4 | ) |
Definition at line 648 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | Assign_5 | ) |
Definition at line 663 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | Assign_6 | ) |
Definition at line 678 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | Assign_7 | ) |
Definition at line 693 of file test_ki_any.cpp.
References ki::any::has_value().
BOOST_AUTO_TEST_CASE | ( | Assign_8 | ) |
Definition at line 706 of file test_ki_any.cpp.
References ki::any::has_value().
BOOST_AUTO_TEST_CASE | ( | Construction_Alignment | ) |
Definition at line 518 of file test_ki_any.cpp.
References stored_internally().
BOOST_AUTO_TEST_CASE | ( | Construction_Basic_1 | ) |
Definition at line 416 of file test_ki_any.cpp.
References moved.
BOOST_AUTO_TEST_CASE | ( | Construction_Basic_2 | ) |
Definition at line 427 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | Construction_Basic_3 | ) |
Definition at line 439 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | Construction_Basic_4 | ) |
Definition at line 452 of file test_ki_any.cpp.
References ki::any::has_value().
BOOST_AUTO_TEST_CASE | ( | Construction_Basic_5 | ) |
Definition at line 467 of file test_ki_any.cpp.
References ki::any::has_value().
BOOST_AUTO_TEST_CASE | ( | Construction_InPlace_1 | ) |
Definition at line 367 of file test_ki_any.cpp.
References ki::any::type().
BOOST_AUTO_TEST_CASE | ( | Construction_InPlace_2 | ) |
Definition at line 482 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | Construction_Pair | ) |
Definition at line 492 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | Construction_Wrapper | ) |
Definition at line 548 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | Emplace_1 | ) |
Definition at line 778 of file test_ki_any.cpp.
References ki::any::emplace(), and ki::any::type().
BOOST_AUTO_TEST_CASE | ( | Exceptions | ) |
Definition at line 747 of file test_ki_any.cpp.
References del_count, ki::any::has_value(), and should_throw.
BOOST_AUTO_TEST_CASE | ( | MakeAny | ) |
Definition at line 306 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | Modifiers | ) |
Definition at line 351 of file test_ki_any.cpp.
References ki::any::has_value(), ki::any::reset(), and ki::any::swap().
BOOST_AUTO_TEST_CASE | ( | NonTrivialType_1 | ) |
Definition at line 277 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | NonTrivialType_2 | ) |
Definition at line 284 of file test_ki_any.cpp.
BOOST_AUTO_TEST_CASE | ( | NonTrivialType_3 | ) |
Definition at line 297 of file test_ki_any.cpp.
References swap.
BOOST_AUTO_TEST_CASE | ( | Swap | ) |
Definition at line 341 of file test_ki_any.cpp.
References ki::any::has_value(), and swap.
BOOST_AUTO_TEST_CASE | ( | TypeObserver | ) |
Definition at line 330 of file test_ki_any.cpp.
References ki::any::type().
bool stored_internally | ( | void * | obj, |
const ki::any & | a | ||
) |
Definition at line 509 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
bool copied = false |
Definition at line 399 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), MULTICHANNEL_TOOL::copyRuleAreaContents(), IMPORT_PROJ_HELPER::ImportIndividualFile(), X::X(), X2::X2(), X2_e::X2_e(), and X_e::X_e().
int del_count = 0 |
Definition at line 738 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Good::~Good().
std::set<const void*> live_objects |
Definition at line 591 of file test_ki_any.cpp.
Referenced by A::A(), BOOST_AUTO_TEST_CASE(), and A::~A().
|
static |
Definition at line 166 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
bool moved = false |
Definition at line 398 of file test_ki_any.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), X::X(), X2::X2(), X2_e::X2_e(), and X_e::X_e().
bool should_throw = false |
Definition at line 724 of file test_ki_any.cpp.
Referenced by Bad::Bad(), Bad2::Bad2(), and BOOST_AUTO_TEST_CASE().