Help us shape the future of Go! Take the 2026 Go Developer Survey

gitfixture

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package gitfixture builds local models.dev repositories with real Git and Bun.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fixture

type Fixture struct {
	Commits          []string
	LockfileChecksum string
	// contains filtered or unexported fields
}

Fixture owns pinned metadata revisions and their immutable build input.

func New

func New(t *testing.T, payloads ...[]byte) *Fixture

New creates a local repository and redirects the production Git URL to it. Each payload creates one commit. Tests that use New must run serially. CI requires the tools. Other environments report an explicit skip if absent.

func (*Fixture) BuildCount

func (f *Fixture) BuildCount(t *testing.T) int

BuildCount returns the number of completed real Bun builds.

Jump to

Keyboard shortcuts

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