//! Main test runner for core networking module //! //! This file imports and runs all core networking tests. const std = @import("std"); const testing = std.testing; const ErrorTests = @import("test_error.zig"); const AddressTests = @import("test_address.zig"); const BufferTests = @import("test_buffer.zig"); const SocketTests = @import("test_socket.zig"); const ConnectionTests = @import("test_connection.zig"); // Export all test functions for the test runner pub usingnamespace ErrorTests; pub usingnamespace AddressTests; pub usingnamespace BufferTests; pub usingnamespace SocketTests; pub usingnamespace ConnectionTests; pub fn main() !void { // Run all tests testing.main(); } // Test all core modules test "all core networking tests" { // This test ensures all modules are properly integrated // and can work together // Test error module integration try ErrorTests.test_error_basic_operations(); try ErrorTests.test_error_context_operations(); try ErrorTests.test_error_stats_operations(); // Test address module integration try AddressTests.test_ipv4_address_creation_and_parsing(); try AddressTests.test_ipv4_address_properties(); try AddressTests.test_ipv6_address_creation_and_operations(); try AddressTests.test_unix_socket_address(); try AddressTests.test_address_parsing_various_formats(); try AddressTests.test_address_validation(); try AddressTests.test_address_list_operations(); try AddressTests.test_address_system_conversion(); // Test buffer module integration try BufferTests.test_buffer_pool_configuration(); try BufferTests.test_buffer_pool_creation_and_basic_operations(); try BufferTests.test_stream_buffer_creation_and_operations(); try BufferTests.test_packet_buffer_operations(); try BufferTests.test_message_buffer_operations(); try BufferTests.test_buffer_manager_operations(); // Test socket module integration try SocketTests.test_socket_factory_creation(); try SocketTests.test_socket_creation_with_config(); try SocketTests.test_socket_state_management(); try SocketTests.test_socket_binding(); try SocketTests.test_socket_listening(); try SocketTests.test_socket_options(); try SocketTests.test_socket_statistics(); try SocketTests.test_socket_manager_operations(); // Test connection module integration try ConnectionTests.test_connection_configuration(); try ConnectionTests.test_connection_creation(); try ConnectionTests.test_connection_statistics_tracking(); try ConnectionTests.test_connection_state_transitions(); try ConnectionTests.test_connection_health_checking(); try ConnectionTests.test_connection_pool_operations(); }