test

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAgainstCodesignTool

func AssertAgainstCodesignTool(t *testing.T, path string)

func AssertDebugOutput

func AssertDebugOutput(t *testing.T, path string, assertions ...OutputAssertion)

func AssertSignedOutput

func AssertSignedOutput(tb testing.TB, stdout string)

func Asset

func Asset(t *testing.T, assetName string) string

Asset returns the path to the cached asset file for a generated test fixture

func AssetCopy

func AssetCopy(t *testing.T, assetName string) string

AssetCopy will setup a new binary from copyFile of fixture for a test setup (+ autocleanup)

Types

type OutputAssertion

type OutputAssertion func(tb testing.TB, stdout string)

func AssertContains

func AssertContains(data string) OutputAssertion

Jump to

Keyboard shortcuts

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