testutil

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 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