testosa

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package testosa provides tests for OSA implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertOrgOS

func AssertOrgOS(t *testing.T, osa osaPkg.I)

AssertOrgOS tests OSA implementations that utilize the original OS package.

func AssertOsa

func AssertOsa(
	t *testing.T,
	osa osaPkg.I,
	mkTempDir func() string,
	assertExit func(t *testing.T),
	getStdio func() (in io.Writer, out, err io.Reader, reset func()),
)

AssertOsa tests various internal OSA operations.

func AssertStdio

func AssertStdio(
	t *testing.T,
	osa osaPkg.I,
	wIn io.Writer,
	rOut io.Reader,
	rErr io.Reader,
) bool

AssertStdio tests Stdin, Stdout, and Stderr of an OS abstraction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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