gittest

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepo

func NewRepo(t *testing.T, fs billy.Filesystem) *git.Repository

NewRepo returns a new Git repository.

func NewServer

func NewServer(fs billy.Filesystem) http.Handler

NewServer returns a http.Handler that serves a git repository. It's expected that the repository is already initialized by the caller.

func WriteFile

func WriteFile(t *testing.T, fs billy.Filesystem, path, content string)

WriteFile writes a file to the filesystem.

Types

This section is empty.

Jump to

Keyboard shortcuts

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