Skip to main content

Module testing

Module testing 

Source
Expand description

Shared test helpers for the core crate and downstream middleware crates.

Functionsยง

test_channel_config
Creates a test ChannelConfig pointing to a local upstream.
test_channel_config_openai
Creates a test ChannelConfig for OpenAI Chat.
test_connection_context
Creates a minimal test ConnectionContext.
test_connection_context_with_role
Creates a test ConnectionContext with a specific role.
test_proxy_request
Creates a minimal test ProxyRequest for /v1/messages.
test_proxy_request_streaming
Creates a streaming test ProxyRequest.
test_proxy_request_with_body
Creates a test ProxyRequest with a custom body.