finishtest

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 8 Imported by: 0 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

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

func (fx *JanitorFixture) Plan(t *testing.T) string

func (*JanitorFixture) Request

func (fx *JanitorFixture) Request(branch, state, sha, author string)

func (*JanitorFixture) Run

func (fx *JanitorFixture) Run(t *testing.T) string

Jump to

Keyboard shortcuts

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