gittest

package
v0.0.0-...-8ed7812 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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