infix
A JIT-Powered FFI Library for C
|
Directories | |
include | |
Files | |
001_primitives.c | |
Tests FFI functionality with all supported primitive C types. | |
002_simple_calls.c | |
Tests basic FFI calls with simple function signatures. | |
003_type_system_api.c | |
Tests the infix_type_* API functions for correctness and error handling. | |
004_signatures.c | |
Hardened test suite for the high-level signature API. | |
005_layouts.c | |
Tests the correctness of the ABI-aware layout calculation for aggregates. | |
006_end_to_end_calls.c | |
End-to-end integration tests for the entire FFI call process. | |
007_type_registry.c | |
101_by_value.c | |
Tests passing and returning small aggregate types (structs) by value. | |
102_by_reference.c | |
Tests passing and returning aggregates that are handled by reference. | |
103_unions.c | |
Tests passing and returning C unions by value. | |
201_basic.c | |
Tests fundamental FFI operations involving pointers. | |
202_in_structs.c | |
Tests passing structs that contain pointer members. | |
203_complex.c | |
Tests FFI calls with C _Complex types. | |
301_primitives.c | |
Tests reverse trampolines (callbacks) with primitive type signatures. | |
302_aggregates.c | |
Tests reverse trampolines (callbacks) with struct and union arguments/returns. | |
303_advanced.c | |
Tests advanced reverse trampoline (callback) patterns. | |
401_large_stack.c | |
Tests FFI calls with a large number of arguments, forcing stack usage. | |
402_variadic_functions.c | |
Tests FFI calls for variadic functions. | |
403_special_types.c | |
Tests FFI calls with types that have unique ABI handling rules. | |
810_memory_stress.c | |
A stress test for detecting memory leaks in the infix FFI library. | |
811_fault_injection.c | |
An advanced stress test that uses fault injection to find memory leaks in the library's error-handling code paths, adapted for the new arena model. | |
820_threading_helgrind.c | |
A cross-platform test for thread-safety issues using Valgrind's Helgrind tool or other thread sanitizers. | |
821_threading_bare.c | |
A "barebones" thread-safety test with no testing framework dependency. | |
830_security.c | |
A test suite for security hardening and vulnerability prevention. | |
840_arena_allocator.c | |
Unit tests for the internal arena allocator. | |
850_regression_cases.c | |
Contains a data-driven suite of deterministic unit tests for specific bugs found by fuzzing. | |
860_error_handling.c | |
Unit tests for the detailed error reporting system. | |
901_call_overhead.c | |
A microbenchmark to measure the performance overhead of an FFI call. | |
903_generation_benchmark.c | |
A microbenchmark for FFI trampoline generation time. | |