Documentation ¶
Overview ¶
repotest implements a fake implementation of api.VersionControlSystem.
Index ¶
Constants ¶
View Source
const DefaultWorkUnitName = "root"
Variables ¶
This section is empty.
Functions ¶
func NewVCS ¶
func NewVCS(dir string, repos ...RepoConfig) api.VersionControlSystem
NewVCS creates a new, fake VersionControlSystem that requires all repositories to be in the given directory.
Types ¶
type ListWorkUnitTestCase ¶
type Options ¶
type Options struct { // It's okay for noop renames to succeed. The CLI command will likely fail // because the tmux session already exists. NoopRenameIsOK bool // i.e. when asked to create a work unit and the name is already used, the // VCS will implicitly drop the name on the old work unit and use the new // name implicitly. // Similar to noop rename, this is okay because the CLI command will likely // fail because the tmux session already exists. ImplicitlyRenamesWorkUnits bool ExtraListWorkUnitNames []string ExtraListWorkUnitPrefixes []ListWorkUnitTestCase Parallel bool // The deadline to use for test cases. // Defaults to 5s. Deadline time.Duration }
type RepoConfig ¶
Click to show internal directories.
Click to hide internal directories.