Documentation
¶
Overview ¶
Package finishtest holds the janitor fixture, which both finish's janitor tests and the drive's watch tests start from.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JanitorFixture ¶
type JanitorFixture struct {
F *testkit.Fakes
In finish.JanitorInput
}
JanitorFixture is what every janitor test starts from: origin's HEAD is main, the main checkout is on main and nothing else holds a branch, and no branch records a dependent. Each test scripts its branches and requests.
func NewJanitorFixture ¶
func NewJanitorFixture(t *testing.T) *JanitorFixture
func (*JanitorFixture) Branches ¶
func (fx *JanitorFixture) Branches(t *testing.T, bs ...[3]string)
Branches scripts a local branch at sha ("" for none) and origin's copy at originSHA ("" for none); call it once per test with every branch.
func (*JanitorFixture) Request ¶
func (fx *JanitorFixture) Request(branch, state, sha, author string)