mocks

package
v0.0.0-...-b44c02a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) AddLabel

func (m *GithubMock) AddLabel(ctx context.Context, number int, labels []string) error

func (*GithubMock) CloseIssue

func (m *GithubMock) CloseIssue(ctx context.Context, number int) error

func (*GithubMock) CommentOnIssue

func (m *GithubMock) CommentOnIssue(ctx context.Context, number int, body string) error

func (*GithubMock) CreateIssue

func (m *GithubMock) CreateIssue(ctx context.Context, title, body string, labels []string) (*ghlib.Issue, error)

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 (m *GithubMock) GetFileContent(ctx context.Context, path string) (string, error)

func (*GithubMock) GetIssueContent

func (m *GithubMock) GetIssueContent(ctx context.Context, number int) (string, error)

func (*GithubMock) GetPR

func (m *GithubMock) GetPR(ctx context.Context, number int) (*ghlib.PullRequest, error)

func (*GithubMock) GetPRStatus

func (m *GithubMock) GetPRStatus(ctx context.Context, ref string) (string, error)

func (*GithubMock) ListFiles

func (m *GithubMock) ListFiles(ctx context.Context, path string) ([]string, error)

func (*GithubMock) ListOpenIssuesByLabel

func (m *GithubMock) ListOpenIssuesByLabel(ctx context.Context, label string) ([]*ghlib.Issue, error)

func (*GithubMock) ListOpenPullRequests

func (m *GithubMock) ListOpenPullRequests(ctx context.Context) ([]*ghlib.PullRequest, error)

func (*GithubMock) MergePR

func (m *GithubMock) MergePR(ctx context.Context, number int) error

func (*GithubMock) SpecHasGapAnalysis

func (m *GithubMock) SpecHasGapAnalysis(ctx context.Context, specID int, gapLabel string) bool

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 (m *JulesMock) CreateSession(ctx context.Context, title, prompt, sourceName, branch string) (*jules.Session, error)

func (*JulesMock) GetSession

func (m *JulesMock) GetSession(ctx context.Context, sessionName string) (*jules.Session, error)

func (*JulesMock) ListSessions

func (m *JulesMock) ListSessions(ctx context.Context) ([]jules.Session, error)

func (*JulesMock) ListSources

func (m *JulesMock) ListSources(ctx context.Context) ([]jules.Source, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL