Documentation ¶
Overview ¶
Package gittest has utilities for testing perf/go/git.
Index ¶
Constants ¶
View Source
const ( // CockroachDatabaseName is the name of the database in CockroachDB that // NewForTest will create. CockroachDatabaseName = "git" )
Variables ¶
View Source
var ( // StartTime is the time of the first commit. StartTime = time.Unix(1680000000, 0) )
Functions ¶
func NewForTest ¶
func NewForTest(t *testing.T) (context.Context, pool.Pool, *testutils.GitBuilder, []string, provider.Provider, *config.InstanceConfig)
NewForTest returns all the necessary variables needed to test against infra/go/git.
The repo is populated with 8 commits, one minute apart, starting at StartTime.
The hashes for each commit are going to be random and so are returned also.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.