Coverage report: 78%

Files Functions Classes

coverage.py v7.13.1, created at 2026-01-10 22:33 +0000

File function   statements missing excluded   coverage
src / arraybridge / __init__.py (no function)   14 0 0   100%
src / arraybridge / converters.py convert_memory   3 0 0   100%
src / arraybridge / converters.py detect_memory_type   8 0 0   100%
src / arraybridge / converters.py (no function)   7 0 0   100%
src / arraybridge / converters_registry.py ConverterBase.to_numpy   1 1 0   0%
src / arraybridge / converters_registry.py ConverterBase.from_numpy   1 1 0   0%
src / arraybridge / converters_registry.py ConverterBase.from_dlpack   1 1 0   0%
src / arraybridge / converters_registry.py ConverterBase.move_to_device   1 1 0   0%
src / arraybridge / converters_registry.py _ensure_module   2 0 0   100%
src / arraybridge / converters_registry.py _make_lambda_with_name   6 0 0   100%
src / arraybridge / converters_registry.py _make_not_implemented   4 0 0   100%
src / arraybridge / converters_registry.py _make_not_implemented.not_impl   1 1 0   0%
src / arraybridge / converters_registry.py _create_converter_classes   13 0 0   100%
src / arraybridge / converters_registry.py get_converter   4 0 0   100%
src / arraybridge / converters_registry.py _add_converter_methods   5 0 0   100%
src / arraybridge / converters_registry.py _add_converter_methods.make_method   2 0 0   100%
src / arraybridge / converters_registry.py _add_converter_methods.make_method.method   10 0 0   100%
src / arraybridge / converters_registry.py _validate_registry   12 0 0   100%
src / arraybridge / converters_registry.py (no function)   28 0 0   100%
src / arraybridge / decorators.py DtypeConversion.numpy_dtype   2 0 0   100%
src / arraybridge / decorators.py _create_lazy_getter   2 0 0   100%
src / arraybridge / decorators.py _create_lazy_getter.getter   5 5 0   0%
src / arraybridge / decorators.py ThreadGPUContext.__init__   4 4 0   0%
src / arraybridge / decorators.py ThreadGPUContext.get_cupy_stream   6 6 0   0%
src / arraybridge / decorators.py ThreadGPUContext.get_torch_stream   6 6 0   0%
src / arraybridge / decorators.py _get_thread_gpu_context   3 3 0   0%
src / arraybridge / decorators.py memory_types   3 0 0   100%
src / arraybridge / decorators.py memory_types.decorator   4 0 0   100%
src / arraybridge / decorators.py memory_types.decorator.wrapper   4 0 0   100%
src / arraybridge / decorators.py _create_dtype_wrapper   25 7 0   72%
src / arraybridge / decorators.py _create_dtype_wrapper.dtype_wrapper   20 2 0   90%
src / arraybridge / decorators.py _create_gpu_wrapper   8 8 0   0%
src / arraybridge / decorators.py _create_gpu_wrapper.gpu_wrapper   19 19 0   0%
src / arraybridge / decorators.py _create_gpu_wrapper.gpu_wrapper.execute_with_stream   4 4 0   0%
src / arraybridge / decorators.py _create_memory_decorator   5 0 0   100%
src / arraybridge / decorators.py _create_memory_decorator.decorator   4 0 0   100%
src / arraybridge / decorators.py _create_memory_decorator.decorator.inner_decorator   6 1 0   83%
src / arraybridge / decorators.py (no function)   47 0 0   100%
src / arraybridge / dtype_scaling.py _scale_generic   42 2 0   95%
src / arraybridge / dtype_scaling.py _scale_pyclesperanto   24 21 0   12%
src / arraybridge / dtype_scaling.py (no function)   10 0 0   100%
src / arraybridge / exceptions.py MemoryConversionError.__init__   6 0 0   100%
src / arraybridge / exceptions.py (no function)   2 0 0   100%
src / arraybridge / framework_config.py _pyclesperanto_get_device_id   14 1 0   93%
src / arraybridge / framework_config.py _pyclesperanto_set_device   6 0 0   100%
src / arraybridge / framework_config.py _pyclesperanto_move_to_device   10 0 0   100%
src / arraybridge / framework_config.py _pyclesperanto_stack_slices   16 14 0   12%
src / arraybridge / framework_config.py _jax_assign_slice   3 0 0   100%
src / arraybridge / framework_config.py _tensorflow_validate_dlpack   15 6 0   60%
src / arraybridge / framework_config.py _numpy_dtype_conversion_needed   2 0 0   100%
src / arraybridge / framework_config.py _torch_dtype_conversion_needed   1 0 0   100%
src / arraybridge / framework_config.py (no function)   13 0 0   100%
src / arraybridge / framework_ops.py (no function)   2 0 0   100%
src / arraybridge / gpu_cleanup.py _create_cleanup_function   12 0 0   100%
src / arraybridge / gpu_cleanup.py _create_cleanup_function.cleanup   1 0 0   100%
src / arraybridge / gpu_cleanup.py _create_cleanup_function.cleanup   24 20 0   17%
src / arraybridge / gpu_cleanup.py cleanup_all_gpu_frameworks   6 0 0   100%
src / arraybridge / gpu_cleanup.py (no function)   13 0 0   100%
src / arraybridge / oom_recovery.py _is_oom_error   28 4 0   86%
src / arraybridge / oom_recovery.py _clear_cache_for_memory_type   23 3 0   87%
src / arraybridge / oom_recovery.py _execute_with_oom_recovery   7 0 0   100%
src / arraybridge / oom_recovery.py (no function)   10 0 0   100%
src / arraybridge / slice_processing.py process_slices   20 0 0   100%
src / arraybridge / slice_processing.py (no function)   3 0 0   100%
src / arraybridge / stack_utils.py _is_2d   3 1 0   67%
src / arraybridge / stack_utils.py _is_3d   3 1 0   67%
src / arraybridge / stack_utils.py _enforce_gpu_device_requirements   3 0 0   100%
src / arraybridge / stack_utils.py _allocate_stack_array   28 8 0   71%
src / arraybridge / stack_utils.py stack_slices   31 7 0   77%
src / arraybridge / stack_utils.py unstack_slices   21 6 0   71%
src / arraybridge / stack_utils.py (no function)   14 0 0   100%
src / arraybridge / types.py (no function)   22 0 0   100%
src / arraybridge / utils.py _ModulePlaceholder.__init__   1 0 0   100%
src / arraybridge / utils.py _ModulePlaceholder.__bool__   1 0 0   100%
src / arraybridge / utils.py _ModulePlaceholder.__getattr__   1 0 0   100%
src / arraybridge / utils.py _ModulePlaceholder.__call__   1 0 0   100%
src / arraybridge / utils.py _ModulePlaceholder.__repr__   1 0 0   100%
src / arraybridge / utils.py optional_import   4 0 0   100%
src / arraybridge / utils.py _ensure_module   19 6 0   68%
src / arraybridge / utils.py _supports_cuda_array_interface   1 0 0   100%
src / arraybridge / utils.py _supports_dlpack   18 1 0   94%
src / arraybridge / utils.py _get_device_id   15 0 0   100%
src / arraybridge / utils.py _set_device   17 11 0   35%
src / arraybridge / utils.py _move_to_device   21 9 0   57%
src / arraybridge / utils.py (no function)   20 0 0   100%
Total     858 191 0   78%

No items found using the specified filter.