mockos

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: MIT Imports: 9 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() transport.Connection

NewMockReadWriteCloser returns a mockReadWriteCloser over an empty buffer.

func NewOS

func NewOS() oslayer.OS

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

func NewProcessExitState

func NewProcessExitState(exitCode int) oslayer.ProcessExitState

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