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

testutil

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testutil provides helpers for parsing on-disk Git object fixtures into go-git object values. It is intentionally module-internal so the helpers stay reserved for tests within this module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommitFromFixture

func ParseCommitFromFixture(fixturePath string) (*object.Commit, error)

ParseCommitFromFixture parses a Git commit object from the file at fixturePath and returns it as an *object.Commit.

func ParseTagFromFixture

func ParseTagFromFixture(fixturePath string) (*object.Tag, error)

ParseTagFromFixture parses a Git tag object from the file at fixturePath and returns it as an *object.Tag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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