testutil

package
v0.0.0-...-af9a2c8 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package testutil takes care of initializing a local git repository for testing. The 'remote' should match the one specified in config/mock.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitCommitTestRepo

func GitCommitTestRepo(t *testing.T) (*git.Oid, func())

GitCommitTestRepo performs a commit on the test repository, and returns its Oid as well as a cleanup function to revert those changes.

func GitInitTestRepo

func GitInitTestRepo(t *testing.T) (*git.Repository, func())

GitInitTestRepo coppies test-fixtures to os.TempDir() and performs a git-init on directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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