Documentation
¶
Overview ¶
Package testcommands TODO: kill off this package, replace with the non-test commands directly
Index ¶
- type Branch
- type Checkout
- type Command
- type CommitAll
- type CommitStaged
- type ConflictsCat
- type Merge
- type MultiRepoTestSetup
- func (mr *MultiRepoTestSetup) CheckoutBranch(dbName, branchName string)
- func (mr *MultiRepoTestSetup) Cleanup(dbName string)
- func (mr *MultiRepoTestSetup) CloneDB(fromRemote, dbName string)
- func (mr *MultiRepoTestSetup) CommitWithWorkingSet(dbName string) *doltdb.Commit
- func (mr *MultiRepoTestSetup) CreateTable(dbName, tblName string)
- func (mr *MultiRepoTestSetup) GetDB(dbName string) *doltdb.DoltDB
- func (mr *MultiRepoTestSetup) GetRemote(remoteName string) env.Remote
- func (mr *MultiRepoTestSetup) NewBranch(dbName, branchName string)
- func (mr *MultiRepoTestSetup) NewDB(dbName string)
- func (mr *MultiRepoTestSetup) NewRemote(remoteName string)
- func (mr *MultiRepoTestSetup) PushToRemote(dbName, remoteName, branchName string)
- func (mr *MultiRepoTestSetup) StageAll(dbName string)
- type Query
- type ResetHard
- type StageAll
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Branch ¶
type Branch struct {
BranchName string
}
func (Branch) CommandString ¶
CommandString describes the Branch command for debugging purposes.
type Checkout ¶
type Checkout struct {
BranchName string
}
func (Checkout) CommandString ¶
CommandString describes the Checkout command for debugging purposes.
type CommitAll ¶
type CommitAll struct {
Message string
}
func (CommitAll) CommandString ¶
CommandString describes the CommitAll command for debugging purposes.
type CommitStaged ¶
type CommitStaged struct {
Message string
}
func (CommitStaged) CommandString ¶
func (c CommitStaged) CommandString() string
CommandString describes the CommitStaged command for debugging purposes.
type ConflictsCat ¶
type ConflictsCat struct {
TableName string
}
func (ConflictsCat) CommandString ¶
func (c ConflictsCat) CommandString() string
CommandString describes the ConflictsCat command for debugging purposes.
type Merge ¶
type Merge struct {
BranchName string
}
func (Merge) CommandString ¶
CommandString describes the Merge command for debugging purposes.
type MultiRepoTestSetup ¶
type MultiRepoTestSetup struct { MrEnv env.MultiRepoEnv Remote string DoltDBs map[string]*doltdb.DoltDB DbNames []string Root string DbPaths map[string]string Home string Remotes map[string]env.Remote Errhand func(args ...interface{}) }
func NewMultiRepoTestSetup ¶
func NewMultiRepoTestSetup(errhand func(args ...interface{})) *MultiRepoTestSetup
TODO this is not a proper builder, dbs need to be added before remotes
func (*MultiRepoTestSetup) CheckoutBranch ¶
func (mr *MultiRepoTestSetup) CheckoutBranch(dbName, branchName string)
func (*MultiRepoTestSetup) Cleanup ¶
func (mr *MultiRepoTestSetup) Cleanup(dbName string)
func (*MultiRepoTestSetup) CloneDB ¶
func (mr *MultiRepoTestSetup) CloneDB(fromRemote, dbName string)
func (*MultiRepoTestSetup) CommitWithWorkingSet ¶
func (mr *MultiRepoTestSetup) CommitWithWorkingSet(dbName string) *doltdb.Commit
func (*MultiRepoTestSetup) CreateTable ¶
func (mr *MultiRepoTestSetup) CreateTable(dbName, tblName string)
func (*MultiRepoTestSetup) GetDB ¶
func (mr *MultiRepoTestSetup) GetDB(dbName string) *doltdb.DoltDB
func (*MultiRepoTestSetup) GetRemote ¶
func (mr *MultiRepoTestSetup) GetRemote(remoteName string) env.Remote
func (*MultiRepoTestSetup) NewBranch ¶
func (mr *MultiRepoTestSetup) NewBranch(dbName, branchName string)
func (*MultiRepoTestSetup) NewDB ¶
func (mr *MultiRepoTestSetup) NewDB(dbName string)
func (*MultiRepoTestSetup) NewRemote ¶
func (mr *MultiRepoTestSetup) NewRemote(remoteName string)
func (*MultiRepoTestSetup) PushToRemote ¶
func (mr *MultiRepoTestSetup) PushToRemote(dbName, remoteName, branchName string)
func (*MultiRepoTestSetup) StageAll ¶
func (mr *MultiRepoTestSetup) StageAll(dbName string)
type Query ¶
type Query struct {
Query string
}
func (Query) CommandString ¶
CommandString describes the Query command for debugging purposes.
type ResetHard ¶
type ResetHard struct{}
func (ResetHard) CommandString ¶
CommandString describes the ResetHard command for debugging purposes.
type StageAll ¶
type StageAll struct{}
func (StageAll) CommandString ¶
CommandString describes the StageAll command for debugging purposes.