gottests

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2026 License: GPL-3.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAddTouch

func ConfigAddTouch(peer blobcache.NodeID) func(cfg gotrepo.Config) gotrepo.Config

Types

type Site

type Site struct {
	Root *os.Root
	Repo *gotrepo.Repo
	WC   *gotwc.WC
	// contains filtered or unexported fields
}

Site is a gotrepo and working copy

func NewSite

func NewSite(t testing.TB) Site

func (*Site) Add

func (s *Site) Add(ps ...string)

func (*Site) AllPaths

func (s *Site) AllPaths() iter.Seq[string]

func (*Site) AssertFSEquals

func (site *Site) AssertFSEquals(m map[string]string)

func (*Site) AssertFileString

func (s *Site) AssertFileString(p, expectData string)

func (*Site) AssertNotExist

func (s *Site) AssertNotExist(p string)

func (*Site) Cat

func (s *Site) Cat(se gotcore.CommitExpr, p string) []byte

func (*Site) CheckAll added in v0.3.0

func (s *Site) CheckAll()

func (*Site) Checkout

func (s *Site) Checkout(name string)

func (*Site) Clone

func (s *Site) Clone() Site

Clone creates a new site, by cloning the this site.

func (*Site) Commit

func (s *Site) Commit(cp gotwc.CommitParams)

func (*Site) ConfigureRepo

func (s *Site) ConfigureRepo(fn func(gotrepo.Config) gotrepo.Config)

func (*Site) CreateFile

func (s *Site) CreateFile(p string, data []byte)

func (*Site) CreateMark

func (s *Site) CreateMark(fqname gotrepo.FQM)

func (*Site) DeleteFile

func (s *Site) DeleteFile(ps ...string)

func (*Site) Fork

func (s *Site) Fork(newName string)

func (*Site) GetHead

func (s *Site) GetHead() string

func (*Site) GetIdentity

func (s *Site) GetIdentity(name string) gotorg.IdentityUnit

func (*Site) IntroduceSelf

func (s *Site) IntroduceSelf() gotorg.ChangeSet

func (*Site) ListMarks

func (s *Site) ListMarks(space string) (ret []string)

func (*Site) Ls

func (s *Site) Ls(se gotcore.CommitExpr, p string) (ret []string)

func (*Site) OrgClient

func (s *Site) OrgClient() gotorg.Client

func (*Site) Pull added in v0.5.0

func (s *Site) Pull()

func (*Site) Push added in v0.5.0

func (s *Site) Push()

func (*Site) Put

func (s *Site) Put(ps ...string)

func (*Site) SetHead

func (s *Site) SetHead(name string)

func (*Site) Sync

func (s *Site) Sync(src, dst gotrepo.FQM)

func (*Site) WriteFSMap

func (s *Site) WriteFSMap(x map[string]string)

func (*Site) WriteString

func (s *Site) WriteString(p string, val string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL