process

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package process is a thin wrapper around the gotests library. It is intended to be called from a binary and handle its arguments, flags, and output when generating tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(out io.Writer, args []string, opts *Options)

Generates tests for the Go files defined in args with the given options. Logs information and errors to out. By default outputs generated tests to out unless specified by opt.

Types

type Options

type Options struct {
	OnlyFuncs     string // Regexp string for filter matches.
	ExclFuncs     string // Regexp string for excluding matches.
	ExportedFuncs bool   // Only include exported functions.
	AllFuncs      bool   // Include all non-tested functions.
	PrintInputs   bool   // Print function parameters as part of error messages.
	Subtests      bool   // Print tests using Go 1.7 subtests
	WriteOutput   bool   // Write output to test file(s).
}

Set of options to use when generating tests.

Jump to

Keyboard shortcuts

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