# `ExUtcp.Transports.TcpUdp.Testable`
[🔗](https://github.com/universal-tool-calling-protocol/elixir-utcp/blob/main/lib/ex_utcp/transports/tcp_udp/testable.ex#L1)

Testable module for TCP/UDP transport to enable mocking in tests.

This module provides a way to inject mocks for the TCP/UDP transport components
during testing, allowing for isolated unit tests.

# `clear_mocks`

Clears all mocks.

# `create_mock_connection`

Creates a mock connection for testing.

# `create_mock_pool`

Creates a mock pool for testing.

# `create_test_tcp_provider`

Creates a test TCP provider.

# `create_test_tool`

Creates a test tool.

# `create_test_udp_provider`

Creates a test UDP provider.

# `get_connection_mock`

Gets the mock module for connections.

# `get_pool_mock`

Gets the mock module for pools.

# `mock_connection_error`

Mocks a connection error.

# `mock_pool_error`

Mocks a pool error.

# `mock_tool_call_response`

Mocks a tool call response.

# `mock_tool_stream_response`

Mocks a tool stream response.

# `set_mocks`

Sets the mock modules for testing.

# `validate_tcp_provider`

Validates a TCP provider configuration.

# `validate_udp_provider`

Validates a UDP provider configuration.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
