Documentation
¶
Overview ¶
Package testkit builds throwaway git remotes and clones of stores for tests: the multi-clone simulator, scenarios and token budgets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Remote ¶
type Remote struct {
Root string // scratch directory
Path string // the bare repository
// contains filtered or unexported fields
}
Remote is a bare repository holding a store.
func NewRemote ¶
NewRemote creates a bare remote whose store has project jk (prefix JK) plus the given files (store-relative path -> content).
func NewStoreRemote ¶
NewStoreRemote creates a bare remote holding a store made with o (o.Dir is ignored) plus the given extra files.
func (*Remote) CountPushes ¶
func (r *Remote) CountPushes()
CountPushes installs a hook that counts pushes received; read with Pushes.