Documentation ¶
Index ¶
- func EmptyRun(*cobra.Command, []string)
- type MockGitHubService
- func (service *MockGitHubService) CreatePullRequest(newPr *services.NewPullRequest, repo services.GitHubRepoID) (*github.PullRequest, error)
- func (service *MockGitHubService) GetRepository(repo services.GitHubRepoID) (*github.Repository, error)
- func (service *MockGitHubService) ListReleases(repo services.GitHubRepoID) ([]*github.RepositoryRelease, error)
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockGitHubService ¶
MockGitHubService - a mocked GitHubService for testing
func NewMockGitHubService ¶
func NewMockGitHubService() *MockGitHubService
NewMockGitHubService - utility function to create a new test instance
func (*MockGitHubService) CreatePullRequest ¶
func (service *MockGitHubService) CreatePullRequest(newPr *services.NewPullRequest, repo services.GitHubRepoID) (*github.PullRequest, error)
CreatePullRequest - stubbed method
func (*MockGitHubService) GetRepository ¶
func (service *MockGitHubService) GetRepository(repo services.GitHubRepoID) (*github.Repository, error)
GetRepository - stubbed method
func (*MockGitHubService) ListReleases ¶
func (service *MockGitHubService) ListReleases(repo services.GitHubRepoID) ([]*github.RepositoryRelease, error)
ListReleases - stubbed method
type Result ¶
Result - returns the resulting error and the combined stdout and stderr output of the executed command
func ExecCommand ¶
ExecCommand - runs a command under test and returns execution info in the TestResult return value
Click to show internal directories.
Click to hide internal directories.