Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTestToken ¶
func GetTestToken() string
Types ¶
type ServerTest ¶
type ServerTest struct {
// contains filtered or unexported fields
}
func NewTestServer ¶
func NewTestServer() *ServerTest
func (*ServerTest) OpenAITestServer ¶
func (ts *ServerTest) OpenAITestServer() *httptest.Server
OpenAITestServer Creates a mocked OpenAI server which can pretend to handle requests during testing.
func (*ServerTest) RegisterHandler ¶
func (ts *ServerTest) RegisterHandler(path string, handler handler)
Click to show internal directories.
Click to hide internal directories.