test

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package test provides internal helper functions for tests. Clients should not use this internal package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCommandLine

func ClearCommandLine() (reset func())

ClearCommandLine clears flag.CommandLine and os.Args

os.Args is set to []string{"spell"}. flag.CommandLine is set to an empty FlagSet

Call reset to restore flag.CommandLine and os.Args to their state before calling this function.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL