gottests

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAddTouch

func ConfigAddTouch(peer blobcache.PeerID) 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(b gotrepo.FQM, p string) []byte

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) Fetch

func (s *Site) Fetch()

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(b gotrepo.FQM, p string) (ret []string)

func (*Site) OrgClient

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

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