Documentation
¶
Overview ¶
Package testhost serves a repository over HTTPS with git's own smart HTTP server, taking pushes, for tests that publish: a git host on this machine, with a certificate a pool can be told to trust.
Index ¶
- func Git(t *testing.T, dir string, args ...string) string
- func Write(t *testing.T, path, content string)
- type Host
- func (host Host) Commit(t *testing.T, name, content string)
- func (host Host) CommitAt(t *testing.T, name, content, when string)
- func (host Host) Head(t *testing.T, branch string) string
- func (host Host) Pool(t *testing.T, pools string) string
- func (host Host) ShallowPool(t *testing.T, pools string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host struct {
Repository repo.Repo
Served string
Work string
Certificate string
Hosts repo.Hosts
Token []credentials.Credential
}
Host is acme/web served at 127.0.0.1, with main holding one commit, and a clone of it, Work, to commit on the host's side.
func (Host) CommitAt ¶ added in v0.15.1
CommitAt is Commit, made at when, as git reads a date: a history with an age.