Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collaboration ¶
type ExecResponse ¶
type FakeAnthropic ¶
type FakeAnthropic struct {
http.Handler
Recorder *recorder.RequestRecorder
// contains filtered or unexported fields
}
FakeAnthropic serves canned responses for the Anthropic Messages API.
func NewFakeAnthropic ¶
func NewFakeAnthropic(responses ...string) *FakeAnthropic
func (*FakeAnthropic) SetTokenLimitErrors ¶
func (f *FakeAnthropic) SetTokenLimitErrors(n int)
SetTokenLimitErrors configures the fake to return n consecutive "prompt is too long" errors before returning normal responses.
type FakeCircleCI ¶
type FakeCircleCI struct {
http.Handler
Recorder *recorder.RequestRecorder
Collaborations []Collaboration
Projects []Project
Sandboxes []Sandbox
RunResponse *RunResponse
AddKeyURL string
ExecResponse *ExecResponse
RunStatusCode int // override status code for trigger run endpoint
// contains filtered or unexported fields
}
FakeCircleCI serves canned responses for the CircleCI API.
func NewFakeCircleCI ¶
func NewFakeCircleCI() *FakeCircleCI
type FakeGitHub ¶
type FakeGitHub struct {
http.Handler
Recorder *recorder.RequestRecorder
// contains filtered or unexported fields
}
FakeGitHub serves canned responses for GitHub's GraphQL API.
func NewFakeGitHub ¶
func NewFakeGitHub() *FakeGitHub
func (*FakeGitHub) SetOrgRepos ¶
func (f *FakeGitHub) SetOrgRepos(resp string)
func (*FakeGitHub) SetOrgValidation ¶
func (f *FakeGitHub) SetOrgValidation(resp string)
func (*FakeGitHub) SetRateLimit ¶
func (f *FakeGitHub) SetRateLimit(resp string)
func (*FakeGitHub) SetRepoError ¶
func (f *FakeGitHub) SetRepoError(repo string, resp string)
func (*FakeGitHub) SetReviewActivity ¶
func (f *FakeGitHub) SetReviewActivity(repo string, resp string)
type RunResponse ¶
Click to show internal directories.
Click to hide internal directories.