Functions | |
def | create_and_destroy (args) |
def | strip_comments (s) |
def | test_init_factory_alias () |
def | test_init_factory_basic () |
def | test_init_factory_casting () |
def | test_init_factory_dual () |
def | test_init_factory_signature (msg) |
def | test_invalid_self () |
def | test_multiple_inheritance () |
def | test_no_placement_new (capture) |
def | test_reallocation_a (capture, msg) |
def | test_reallocation_b (capture, msg) |
def | test_reallocation_c (capture, msg) |
def | test_reallocation_d (capture, msg) |
def | test_reallocation_e (capture, msg) |
def | test_reallocation_f (capture, msg) |
def | test_reallocation_g (capture, msg) |
def test_factory_constructors.create_and_destroy | ( | args | ) |
Definition at line 340 of file test_factory_constructors.py.
def test_factory_constructors.strip_comments | ( | s | ) |
Definition at line 347 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_alias | ( | ) |
Tests py::init_factory() wrapper with value conversions and alias types
Definition at line 151 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_basic | ( | ) |
Tests py::init_factory() wrapper around various ways of returning the object
Definition at line 10 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_casting | ( | ) |
Tests py::init_factory() wrapper with various upcasting and downcasting returns
Definition at line 103 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_dual | ( | ) |
Tests init factory functions with dual main/alias factory functions
Definition at line 221 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_signature | ( | msg | ) |
Definition at line 70 of file test_factory_constructors.py.
def test_factory_constructors.test_invalid_self | ( | ) |
Tests invocation of the pybind-registered base class with an invalid `self` argument.
Definition at line 466 of file test_factory_constructors.py.
def test_factory_constructors.test_multiple_inheritance | ( | ) |
Definition at line 329 of file test_factory_constructors.py.
def test_factory_constructors.test_no_placement_new | ( | capture | ) |
Prior to 2.2, `py::init<...>` relied on the type supporting placement new; this tests a class without placement new support.
Definition at line 303 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_a | ( | capture, | |
msg | |||
) |
When the constructor is overloaded, previous overloads can require a preallocated value. This test makes sure that such preallocated values only happen when they might be necessary, and that they are deallocated properly.
Definition at line 351 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_b | ( | capture, | |
msg | |||
) |
Definition at line 373 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_c | ( | capture, | |
msg | |||
) |
Definition at line 389 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_d | ( | capture, | |
msg | |||
) |
Definition at line 403 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_e | ( | capture, | |
msg | |||
) |
Definition at line 418 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_f | ( | capture, | |
msg | |||
) |
Definition at line 433 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_g | ( | capture, | |
msg | |||
) |
Definition at line 449 of file test_factory_constructors.py.