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

gittest

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gittest holds the deterministic object hashing shared by the fake Repository implementations in higher packages (internal/workspace, internal/notebook). internal/git's own in-package tests cannot import this package (it would be an import cycle) and keep a local copy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectID

func ObjectID(kind string, data []byte) git.OID

ObjectID hashes a fake Git object to a deterministic OID using the Git object-header form: "<kind> <len>\x00<data>". It is a test identity only, not a Git-compatible object ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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