Documentation
¶
Index ¶
- func AssertJSONEqual(t *testing.T, expected, actual string)
- func CreateAnthropicRequest(messages []map[string]interface{}, streaming bool) map[string]interface{}
- func CreateJSONRequest(t *testing.T, method, url string, body interface{}) *http.Request
- func CreateMockServer(handler http.HandlerFunc) *httptest.Server
- func CreateOpenAIResponse(content string, finishReason string) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertJSONEqual ¶
AssertJSONEqual asserts two JSON strings are equal
func CreateAnthropicRequest ¶
func CreateAnthropicRequest(messages []map[string]interface{}, streaming bool) map[string]interface{}
CreateAnthropicRequest creates a standard Anthropic API request for testing
func CreateJSONRequest ¶
CreateJSONRequest creates an HTTP request with JSON body
func CreateMockServer ¶
func CreateMockServer(handler http.HandlerFunc) *httptest.Server
CreateMockServer creates a test HTTP server with the given handler
func CreateOpenAIResponse ¶
CreateOpenAIResponse creates a standard OpenAI API response for testing
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.