cmd

package
v0.0.0-...-2c0f376 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package cmd provides helper functions for testing main packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOutput

func CheckOutput(t *testing.T, file, expected string)

CheckOutput from running a Go program against expectations.

func Run

func Run(t *testing.T, file string) string

Run a Go program and capture the output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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