Documentation
¶
Index ¶
- func CreateFakeConfig() *configuration.Configuration
- func CreateFakeExecutor() types.Executor
- func CreateFakeHookContext(inOut io.IO, conf *configuration.Configuration, repo git.Repo) *app.Context
- type IOMock
- func (inOut *IOMock) Argument(name, defaultValue string) string
- func (inOut *IOMock) Arguments() map[string]string
- func (inOut *IOMock) Ask(message string, defaultValue string) string
- func (inOut *IOMock) Input() io.Input
- func (inOut *IOMock) IsDebug() bool
- func (inOut *IOMock) IsInteractive() bool
- func (inOut *IOMock) IsQuiet() bool
- func (inOut *IOMock) IsVerbose() bool
- func (inOut *IOMock) Option(name, defaultValue string) string
- func (inOut *IOMock) Options() map[string]string
- func (inOut *IOMock) SetArguments(args map[string]string)
- func (inOut *IOMock) SetOptions(args map[string]string)
- func (inOut *IOMock) SetStdIn(input []string)
- func (inOut *IOMock) StandardInput() []string
- func (inOut *IOMock) Verbosity() int
- func (inOut *IOMock) Write(message string, newline bool, verbosity int)
- type RepoMock
- func (r *RepoMock) AbsPath() string
- func (r *RepoMock) BranchName() string
- func (r *RepoMock) ChangedFiles(from, to string) ([]string, error)
- func (r *RepoMock) CommitMessage(path string) (*types.CommitMessage, error)
- func (r *RepoMock) CommitsBetween(from string, to string) []*types.Commit
- func (r *RepoMock) ConfigValue(value string, defaultValue string) string
- func (r *RepoMock) GitDir() string
- func (r *RepoMock) HookExists(hook string) bool
- func (r *RepoMock) HooksDir() string
- func (r *RepoMock) IsMerging() bool
- func (r *RepoMock) Path() string
- func (r *RepoMock) PrepareCommitMessage(path string, msg *types.CommitMessage) error
- func (r *RepoMock) SetBranch(name string) *RepoMock
- func (r *RepoMock) SetFiles(files []string) *RepoMock
- func (r *RepoMock) SetFilesError(triggerError bool) *RepoMock
- func (r *RepoMock) StagedFiles() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFakeConfig ¶
func CreateFakeConfig() *configuration.Configuration
func CreateFakeExecutor ¶
func CreateFakeHookContext ¶
func CreateFakeHookContext(inOut io.IO, conf *configuration.Configuration, repo git.Repo) *app.Context
Types ¶
type IOMock ¶
type IOMock struct { Out []string // contains filtered or unexported fields }
func CreateFakeIO ¶
func CreateFakeIO() *IOMock
func (*IOMock) IsInteractive ¶
func (*IOMock) SetArguments ¶
func (*IOMock) SetOptions ¶
func (*IOMock) StandardInput ¶
type RepoMock ¶
type RepoMock struct {
// contains filtered or unexported fields
}
func CreateFakeRepo ¶
func CreateFakeRepo() *RepoMock
func (*RepoMock) BranchName ¶
func (*RepoMock) CommitMessage ¶
func (r *RepoMock) CommitMessage(path string) (*types.CommitMessage, error)
func (*RepoMock) CommitsBetween ¶
func (*RepoMock) ConfigValue ¶
func (*RepoMock) HookExists ¶
func (*RepoMock) PrepareCommitMessage ¶
func (r *RepoMock) PrepareCommitMessage(path string, msg *types.CommitMessage) error
func (*RepoMock) SetFilesError ¶
func (*RepoMock) StagedFiles ¶
Click to show internal directories.
Click to hide internal directories.