Functions | |
def | test_bool_caster () |
def | test_builtins_cast_return_none () |
def | test_bytearray_to_string () |
def | test_bytes_to_string () |
def | test_complex_cast () |
def | test_const_ref_caster () |
def | test_int_convert () |
def | test_int_long () |
def | test_integer_casting () |
def | test_none_deferred () |
def | test_numpy_bool () |
def | test_numpy_int_convert () |
def | test_reference_wrapper () |
def | test_single_char_arguments () |
def | test_string_view (capture) |
def | test_tuple (doc) |
def | test_unicode_conversion () |
def | test_void_caster () |
def | test_void_caster_2 () |
Variables | |
x | |
def test_builtin_casters.test_bool_caster | ( | ) |
Test bool caster implicit conversions.
Definition at line 446 of file test_builtin_casters.py.
def test_builtin_casters.test_builtins_cast_return_none | ( | ) |
Casters produced with PYBIND11_TYPE_CASTER() should convert nullptr to None
Definition at line 381 of file test_builtin_casters.py.
def test_builtin_casters.test_bytearray_to_string | ( | ) |
Tests the ability to pass bytearray to C++ string-accepting functions
Definition at line 138 of file test_builtin_casters.py.
def test_builtin_casters.test_bytes_to_string | ( | ) |
Tests the ability to pass bytes to C++ string-accepting functions. Note that this is one-way: the only way to return bytes to Python is via the pybind11::bytes class.
Definition at line 124 of file test_builtin_casters.py.
def test_builtin_casters.test_complex_cast | ( | ) |
std::complex casts
Definition at line 440 of file test_builtin_casters.py.
def test_builtin_casters.test_const_ref_caster | ( | ) |
Verifies that const-ref is propagated through type_caster cast_op. The returned ConstRefCasted type is a minimal type that is constructed to reference the casting mode used.
Definition at line 515 of file test_builtin_casters.py.
def test_builtin_casters.test_int_convert | ( | ) |
Definition at line 250 of file test_builtin_casters.py.
def test_builtin_casters.test_int_long | ( | ) |
Definition at line 505 of file test_builtin_casters.py.
def test_builtin_casters.test_integer_casting | ( | ) |
Issue #929 - out-of-range integer values shouldn't be accepted
Definition at line 227 of file test_builtin_casters.py.
def test_builtin_casters.test_none_deferred | ( | ) |
None passed as various argument types should defer to other overloads
Definition at line 391 of file test_builtin_casters.py.
def test_builtin_casters.test_numpy_bool | ( | ) |
Definition at line 489 of file test_builtin_casters.py.
def test_builtin_casters.test_numpy_int_convert | ( | ) |
Definition at line 321 of file test_builtin_casters.py.
def test_builtin_casters.test_reference_wrapper | ( | ) |
std::reference_wrapper for builtin and user types
Definition at line 405 of file test_builtin_casters.py.
def test_builtin_casters.test_single_char_arguments | ( | ) |
Tests failures for passing invalid inputs to char-accepting functions
Definition at line 51 of file test_builtin_casters.py.
def test_builtin_casters.test_string_view | ( | capture | ) |
Tests support for C++17 string_view arguments and return values
Definition at line 148 of file test_builtin_casters.py.
def test_builtin_casters.test_tuple | ( | doc | ) |
std::pair <-> tuple & std::tuple <-> tuple
Definition at line 345 of file test_builtin_casters.py.
def test_builtin_casters.test_unicode_conversion | ( | ) |
Tests unicode conversion and error reporting.
Definition at line 16 of file test_builtin_casters.py.
def test_builtin_casters.test_void_caster | ( | ) |
Definition at line 400 of file test_builtin_casters.py.
def test_builtin_casters.test_void_caster_2 | ( | ) |
Definition at line 511 of file test_builtin_casters.py.
test_builtin_casters.x |
Definition at line 468 of file test_builtin_casters.py.