Documentation
¶
Index ¶
- type GithubMock
- func (m *GithubMock) AddLabel(ctx context.Context, number int, labels []string) error
- func (m *GithubMock) CloseIssue(ctx context.Context, number int) error
- func (m *GithubMock) CommentOnIssue(ctx context.Context, number int, body string) error
- func (m *GithubMock) CreateIssue(ctx context.Context, title, body string, labels []string) (*ghlib.Issue, error)
- func (m *GithubMock) DeleteBranch(ctx context.Context, branchName string) error
- func (m *GithubMock) DeleteFile(ctx context.Context, path, message string) error
- func (m *GithubMock) GetFileContent(ctx context.Context, path string) (string, error)
- func (m *GithubMock) GetIssueContent(ctx context.Context, number int) (string, error)
- func (m *GithubMock) GetPR(ctx context.Context, number int) (*ghlib.PullRequest, error)
- func (m *GithubMock) GetPRStatus(ctx context.Context, ref string) (string, error)
- func (m *GithubMock) ListFiles(ctx context.Context, path string) ([]string, error)
- func (m *GithubMock) ListOpenIssuesByLabel(ctx context.Context, label string) ([]*ghlib.Issue, error)
- func (m *GithubMock) ListOpenPullRequests(ctx context.Context) ([]*ghlib.PullRequest, error)
- func (m *GithubMock) MergePR(ctx context.Context, number int) error
- func (m *GithubMock) SpecHasGapAnalysis(ctx context.Context, specID int, gapLabel string) bool
- type JulesMock
- func (m *JulesMock) CreateSession(ctx context.Context, title, prompt, sourceName, branch string) (*jules.Session, error)
- func (m *JulesMock) GetSession(ctx context.Context, sessionName string) (*jules.Session, error)
- func (m *JulesMock) ListSessions(ctx context.Context) ([]jules.Session, error)
- func (m *JulesMock) ListSources(ctx context.Context) ([]jules.Source, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubMock ¶
type GithubMock struct {
ListOpenIssuesByLabelFunc func(ctx context.Context, label string) ([]*ghlib.Issue, error)
ListOpenPullRequestsFunc func(ctx context.Context) ([]*ghlib.PullRequest, error)
CreateIssueFunc func(ctx context.Context, title, body string, labels []string) (*ghlib.Issue, error)
AddLabelFunc func(ctx context.Context, number int, labels []string) error
SpecHasGapAnalysisFunc func(ctx context.Context, specID int, gapLabel string) bool
GetIssueContentFunc func(ctx context.Context, number int) (string, error)
CommentOnIssueFunc func(ctx context.Context, number int, body string) error
CloseIssueFunc func(ctx context.Context, number int) error
MergePRFunc func(ctx context.Context, number int) error
GetPRStatusFunc func(ctx context.Context, ref string) (string, error)
GetPRFunc func(ctx context.Context, number int) (*ghlib.PullRequest, error)
GetFileContentFunc func(ctx context.Context, path string) (string, error)
ListFilesFunc func(ctx context.Context, path string) ([]string, error)
DeleteBranchFunc func(ctx context.Context, branchName string) error
DeleteFileFunc func(ctx context.Context, path, message string) error
}
GithubMock is a mock implementation of github.ClientInterface
func (*GithubMock) CloseIssue ¶
func (m *GithubMock) CloseIssue(ctx context.Context, number int) error
func (*GithubMock) CommentOnIssue ¶
func (*GithubMock) CreateIssue ¶
func (*GithubMock) DeleteBranch ¶
func (m *GithubMock) DeleteBranch(ctx context.Context, branchName string) error
func (*GithubMock) DeleteFile ¶
func (m *GithubMock) DeleteFile(ctx context.Context, path, message string) error
func (*GithubMock) GetFileContent ¶
func (*GithubMock) GetIssueContent ¶
func (*GithubMock) GetPR ¶
func (m *GithubMock) GetPR(ctx context.Context, number int) (*ghlib.PullRequest, error)
func (*GithubMock) GetPRStatus ¶
func (*GithubMock) ListOpenIssuesByLabel ¶
func (*GithubMock) ListOpenPullRequests ¶
func (m *GithubMock) ListOpenPullRequests(ctx context.Context) ([]*ghlib.PullRequest, error)
func (*GithubMock) SpecHasGapAnalysis ¶
type JulesMock ¶
type JulesMock struct {
ListSourcesFunc func(ctx context.Context) ([]jules.Source, error)
CreateSessionFunc func(ctx context.Context, title, prompt, sourceName, branch string) (*jules.Session, error)
GetSessionFunc func(ctx context.Context, sessionName string) (*jules.Session, error)
ListSessionsFunc func(ctx context.Context) ([]jules.Session, error)
}
JulesMock is a mock implementation of jules.ClientInterface
func (*JulesMock) CreateSession ¶
func (*JulesMock) GetSession ¶
func (*JulesMock) ListSessions ¶
Click to show internal directories.
Click to hide internal directories.