localremote

package
v0.9.5 Latest Latest
Warning

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

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

Documentation

Overview

Package localremote aids (go-)git-related unit tests by managing temporary git repositories in the file system. Now, go-git can perfectly access remote repositories which are actually local (using the "file:" protocol), hence the package name "localremote".

This package leverages Ginko testing framework and Gomega matcher library for simplifying the code and at the same time making it expressive, without the overly load noise of Go's (barely existing) assertion checking and error handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTransientTestRepo

func CreateTransientTestRepo() (repopath string)

CreateTransientTestRepo initializes and populates a fresh git repository in a new temporary directory and then returns the path to this newly created directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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