gittest

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package gittest is a test package for the git middleware. It implements a mock gitos.OS, gitos.Cmd and gitos.File.

Index

Constants

This section is empty.

Variables

View Source
var CmdOutput = "success"

CmdOutput is the output of any call to the mocked gitos.Cmd's Output().

View Source
var FakeOS = fakeOS{}

FakeOS implements a mock gitos.OS, gitos.Cmd and gitos.File.

View Source
var TempFileName = "tempfile"

TempFileName is the name of any file returned by mocked gitos.OS's TempFile().

Functions

func Open

func Open(name string) gitos.File

Open creates a new mock gitos.File.

Types

This section is empty.

Jump to

Keyboard shortcuts

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