mockos

package
v0.0.0-...-d12d6dc Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mockos defines a mock interface into operating system functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockReadWriteCloser

func NewMockReadWriteCloser() *mockReadWriteCloser

NewMockReadWriteCloser returns a *mockReadWriteCloser over an empty buffer.

func NewOS

func NewOS() *mockOS

NewOS returns a *mockOS, which mocks out operating system functionality.

func NewProcessExitState

func NewProcessExitState(exitCode int) *mockProcessExitState

NewProcessExitState returns a *mockProcessExitState with the given exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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