μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions | Variables
test_buffers Namespace Reference

Functions

def test_from_python ()
 
def test_to_python ()
 
def test_inherited_protocol ()
 
def test_pointer_to_member_fn ()
 
def test_readonly_buffer ()
 
def test_selective_readonly_buffer ()
 
def test_ctypes_array_1d ()
 
def test_ctypes_array_2d ()
 
def test_ctypes_from_buffer ()
 

Variables

 np = pytest.importorskip("numpy")
 

Function Documentation

◆ test_ctypes_array_1d()

def test_buffers.test_ctypes_array_1d ( )

Definition at line 118 of file test_buffers.py.

References len().

◆ test_ctypes_array_2d()

def test_buffers.test_ctypes_array_2d ( )

Definition at line 133 of file test_buffers.py.

References len().

◆ test_ctypes_from_buffer()

def test_buffers.test_ctypes_from_buffer ( )

Definition at line 151 of file test_buffers.py.

References len().

◆ test_from_python()

def test_buffers.test_from_python ( )

Definition at line 15 of file test_buffers.py.

References ConstructorStats.get().

◆ test_inherited_protocol()

def test_buffers.test_inherited_protocol ( )
SquareMatrix is derived from Matrix and inherits the buffer protocol

Definition at line 77 of file test_buffers.py.

◆ test_pointer_to_member_fn()

def test_buffers.test_pointer_to_member_fn ( )

Definition at line 85 of file test_buffers.py.

◆ test_readonly_buffer()

def test_buffers.test_readonly_buffer ( )

Definition at line 93 of file test_buffers.py.

◆ test_selective_readonly_buffer()

def test_buffers.test_selective_readonly_buffer ( )

Definition at line 102 of file test_buffers.py.

◆ test_to_python()

def test_buffers.test_to_python ( )

Definition at line 43 of file test_buffers.py.

References abs(), and ConstructorStats.get().

Variable Documentation

◆ np

test_buffers.np = pytest.importorskip("numpy")

Definition at line 12 of file test_buffers.py.